compiler: @VMODULE

This commit is contained in:
Delyan Angelov 2020-02-29 15:23:45 +02:00 committed by GitHub
parent f67fca826e
commit f9d5c0110f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 223 additions and 27 deletions

View 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 .

View file

@ -0,0 +1,7 @@
#V Module#
Module {
name: 'mod1',
description: 'A simple module, containing C code.',
dependencies: []
}

View file

@ -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"