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

v.pref,v.builder: support overriding the C cross compiler by setting VCROSS_COMPILER_NAME

This commit is contained in:
Delyan Angelov
2021-09-20 19:57:43 +03:00
parent 9c4507d115
commit 5cf0ee46b3
3 changed files with 21 additions and 8 deletions

View File

@@ -119,7 +119,12 @@ see also `v help build`.
explicitly supported platforms without source changes.
-m32, -m64
Specify whether 32-bit or 64-bit machine code is generated.
Whether 32-bit or 64-bit machine code will be generated.
NB: if you need to produce 32-bit code, *and* you are cross compiling
to another OS, you may need to also set the environment variable
VCROSS_COMPILER_NAME, in order to override the default cross compiler,
that V will use (`x86_64-w64-mingw32-gcc` for targeting Windows, and
`clang` for targeting Linux from other operating systems).
-sanitize
Pass flags related to sanitization to the C compiler.