1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: support storing temporary files under TMPDIR/v/

Fix for filepath.join not \0 terminating its result
This commit is contained in:
Delyan Angelov
2019-11-17 05:45:20 +02:00
committed by Alexander Medvednikov
parent 200fcd41ce
commit be7cf3e812
6 changed files with 92 additions and 21 deletions

View File

@ -28,6 +28,9 @@ pub const (
You can set it like this: `export VFLAGS="-cc clang -debug"` on *nix,
`set VFLAGS=-cc msvc` on Windows.
V respects the TMPDIR environment variable, and will put .tmp.c files in TMPDIR/v/ .
If you have not set it, a suitable platform specific folder (like /tmp) will be used.
Options/commands:
-h, help Display this information.
-o <file> Write output to <file>.