mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: @VMODULE
This commit is contained in:
4
vlib/compiler/tests/project_with_c_code/.v.mod.stop
Normal file
4
vlib/compiler/tests/project_with_c_code/.v.mod.stop
Normal file
@ -0,0 +1,4 @@
|
||||
Do not delete this file.
|
||||
It is used by V to stop the lookup for v.mod,
|
||||
so that the top level vlib/v.mod is not found,
|
||||
if you delete mod1/v.mod .
|
7
vlib/compiler/tests/project_with_c_code/mod1/v.mod
Normal file
7
vlib/compiler/tests/project_with_c_code/mod1/v.mod
Normal file
@ -0,0 +1,7 @@
|
||||
#V Module#
|
||||
|
||||
Module {
|
||||
name: 'mod1',
|
||||
description: 'A simple module, containing C code.',
|
||||
dependencies: []
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
module mod1
|
||||
|
||||
#flag -I @VMODULE/c
|
||||
#flag @VMODULE/c/implementation.o
|
||||
#flag -I @VROOT/c
|
||||
#flag @VROOT/c/implementation.o
|
||||
|
||||
#include "header.h"
|
||||
|
||||
|
Reference in New Issue
Block a user