summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 60539aca51b..e42c92bd455 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -80,6 +80,7 @@ newoption {
{ "windows", "Windows" },
{ "os2", "OS/2 eComStation" },
{ "haiku", "Haiku" },
+ { "solaris", "Solaris SunOS" },
},
}
@@ -767,9 +768,14 @@ end
-- warnings only applicable to C compiles
buildoptions_c {
"-Wpointer-arith",
- "-Wbad-function-cast",
"-Wstrict-prototypes",
}
+
+if _OPTIONS["targetos"]~="freebsd" then
+ buildoptions_c {
+ "-Wbad-function-cast",
+ }
+end
-- warnings only applicable to OBJ-C compiles
buildoptions_objc {