diff options
| author | ruki <[email protected]> | 2022-11-05 21:36:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-05 21:36:17 +0800 |
| commit | 5796e77bdb782277ecc82090496aebcea65aa87f (patch) | |
| tree | 1f442c835356e8b93dec6167466e903eb025c6c3 /xmake/modules/core/tools/gcc.lua | |
| parent | 7c5bd94cde348e8d656a0cb577bef83c7e20a070 (diff) | |
improve exceptions
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index cd11743c7..412a0cdbf 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -311,16 +311,7 @@ end -- set_exceptions("no-objc") -- set_exceptions("cxx", "objc") function nf_exception(self, exp) - local maps = { - cxx = "-fcxx-exceptions", - ["no-cxx"] = "-fno-cxx-exceptions", - objc = "-fobjc-exceptions", - ["no-objc"] = "-fno-objc-exceptions" - } - local value = maps[exp] - if value then - return {exp:startswith("no-") and "-fno-exceptions" or "-fexceptions", value} - end + return exp:startswith("no-") and "-fno-exceptions" or "-fexceptions" end -- make the c precompiled header flag |
