diff options
author | Araq <rumpf_a@web.de> | 2015-02-07 19:14:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-02-08 13:38:04 +0100 |
commit | f7f87a7709e40953be74ddd8924a8a77be7a2fa7 (patch) | |
tree | 8dc8f11bf187d0bdf453f9e7742e62a891fc5424 /config | |
parent | 5f54ccf0bd8a4465c887ed80a453b4fb56568d3b (diff) | |
download | Nim-f7f87a7709e40953be74ddd8924a8a77be7a2fa7.tar.gz |
merged #2083 manually
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index e4ea43a59..8f5d7e8e7 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -112,6 +112,20 @@ hint[LineTooLong]=off gcc.cpp.options.always = "-w -fpermissive" @end +# Configuration for the VxWorks +# This has been tested with VxWorks 6.9 only +@if vxworks: + # For now we only support compiling RTPs applications (i.e. no DKMs) + gcc.options.always = "-mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings" + # The linker config must add the VxWorks common library for the selected + # processor which is usually found in: + # "$WIND_BASE/target/lib/usr/lib/PROCESSOR_FAMILY/PROCESSOR_TYPE/common", + # where PROCESSOR_FAMILY and PROCESSOR_TYPE are those supported by the VxWorks + # compiler (e.g. ppc/PPC32 or mips/MIPSI64, etc) + # For now we only support the PowerPC CPU + gcc.options.linker %= "-L $WIND_BASE/target/lib/usr/lib/ppc/PPC32/common -mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings" +@end + gcc.options.speed = "-O3 -fno-strict-aliasing" gcc.options.size = "-Os" gcc.options.debug = "-g3 -O0" |