1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/compiler
Delyan Angelov 5d0cb1437c Add support for VFLAGS environment variable, merged with cmd args.
Using VFLAGS, you can pass common options through it to the V compiler,
without having to manually specify them everytime when you type V ...
In addition, since environment variables are *inherited*, all subprocess
V compilers, which V launches (for example when compiling with -live),
will *also* use the same VFLAGS environment variable.

Example usage:
  export VFLAGS="-debug -show_c_cmd"
  v -live message.v

=> This will keep *both* of the generated C source files .message.c
   *AND* .message_shared_lib.c . It will also cause both V compile
   subprocesses to print their resulting C compiler backend lines.
   This is very useful when using GDB to debug problems.
2019-07-16 19:35:16 +02:00
..
tests Fix #1107 2019-07-15 16:30:06 +02:00
cgen.v store temp C files in the same directory 2019-07-16 02:12:05 +02:00
fn.v do not create ~/.vlang directory 2019-07-16 17:44:25 +02:00
jsgen.v new enum syntax; update the compiler (p.tok == .name) 2019-07-10 02:02:38 +02:00
main.v Add support for VFLAGS environment variable, merged with cmd args. 2019-07-16 19:35:16 +02:00
parser.v http_win: fix BUF_MAX 2019-07-16 15:29:27 +02:00
scanner.v re-write map.v and update the compiler 2019-07-14 22:08:17 +02:00
table.v make maps work with structs defined in different modules 2019-07-16 12:18:52 +02:00
token.v .key_type 2019-07-16 12:17:17 +02:00