summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 4b3025b5ec8..9cb7ee2a4df 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -213,6 +213,11 @@ newoption {
}
newoption {
+ trigger = "PDB_SYMBOLS",
+ description = "Generate CodeView PDB symbols.",
+}
+
+newoption {
trigger = "PROFILER",
description = "Include the internal profiler.",
}
@@ -718,9 +723,12 @@ local version = str_to_version(_OPTIONS["gcc_version"])
if _OPTIONS["SYMBOLS"]~=nil and _OPTIONS["SYMBOLS"]~="0" then
buildoptions {
"-g" .. _OPTIONS["SYMLEVEL"],
- "-fno-omit-frame-pointer",
- "-fno-optimize-sibling-calls",
}
+ if _OPTIONS["PDB_SYMBOLS"]~=nil and _OPTIONS["PDB_SYMBOLS"]~=0 then
+ buildoptions {
+ "-gcodeview",
+ }
+ end
end
--# we need to disable some additional implicit optimizations for profiling