summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
committer Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
commitc2dc4316bdfb59972c2d1b204f46f059f898ea0f (patch)
tree8dac044df4a6e9f53af08fd4ae32a46c74405ab6 /scripts/genie.lua
parentb568e6deab3edaea3f4a15a0253ad64fc5a9897b (diff)
(nw) fix stuff:
* Add per-language compiler flag options to help with exotic setups * Get rid of a potention buffer overrun in NuBus image card * CHAR_WIDTH and LONG_WIDTH are preprocessor macros in limits.h with glibc if __GLIBC_USE (IEC_60559_BFP_EXT) is enabled - avoid using them as names * Make formats/upd765_dsk.h slightly safer with defualt initialisers for key format members * Don't rely on random BSS data being zero in imagedev/floppy.cpp
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua46
1 files changed, 45 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index b11b99203d4..46a4f9310d9 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -219,7 +219,27 @@ newoption {
newoption {
trigger = "ARCHOPTS",
- description = "ARCHOPTS.",
+ description = "Additional options for target C/C++/Objective-C/Objective-C++ compilers and linker.",
+}
+
+newoption {
+ trigger = "ARCHOPTS_C",
+ description = "Additional options for target C++ compiler.",
+}
+
+newoption {
+ trigger = "ARCHOPTS_CXX",
+ description = "Additional options for target C++ compiler.",
+}
+
+newoption {
+ trigger = "ARCHOPTS_OBJC",
+ description = "Additional options for target Objective-C compiler.",
+}
+
+newoption {
+ trigger = "ARCHOPTS_OBJCXX",
+ description = "Additional options for target Objective-C++ compiler.",
}
newoption {
@@ -869,6 +889,30 @@ if _OPTIONS["ARCHOPTS"] then
}
end
+if _OPTIONS["ARCHOPTS_C"] then
+ buildoptions_c {
+ _OPTIONS["ARCHOPTS_C"]
+ }
+end
+
+if _OPTIONS["ARCHOPTS_CXX"] then
+ buildoptions_cpp {
+ _OPTIONS["ARCHOPTS_CXX"]
+ }
+end
+
+if _OPTIONS["ARCHOPTS_OBJC"] then
+ buildoptions_objc {
+ _OPTIONS["ARCHOPTS_OBJC"]
+ }
+end
+
+if _OPTIONS["ARCHOPTS_OBJCXX"] then
+ buildoptions_objcpp {
+ _OPTIONS["ARCHOPTS_OBJCXX"]
+ }
+end
+
if _OPTIONS["SHLIB"] then
buildoptions {
"-fPIC"