Skip to content

Commit

Permalink
Merge pull request premake#11 from starkos/remove-deprecated-flags
Browse files Browse the repository at this point in the history
Switch over to exceptionhandling() and rtti()
  • Loading branch information
starkos committed Jun 25, 2015
2 parents c9d27b5 + 22f9137 commit 09b5c9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/actions/xcode/tests/test_xcode_project.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@


function suite.XCBuildConfigurationProject_OnNoExceptions()
flags { "NoExceptions" }
exceptionhandling "Off"
prepare()
xcode.XCBuildConfiguration_Project(tr, tr.configs[1])
test.capture [[
Expand Down Expand Up @@ -1559,7 +1559,7 @@


function suite.XCBuildConfigurationProject_OnNoRTTI()
flags { "NoRTTI" }
rtti "Off"
prepare()
xcode.XCBuildConfiguration_Project(tr, tr.configs[1])
test.capture [[
Expand Down
6 changes: 3 additions & 3 deletions src/actions/xcode/xcode_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1006,19 +1006,19 @@

settings['GCC_C_LANGUAGE_STANDARD'] = 'gnu99'

if cfg.flags.NoExceptions then
if cfg.exceptionhandling == p.OFF then
settings['GCC_ENABLE_CPP_EXCEPTIONS'] = 'NO'
end

if cfg.flags.NoRTTI then
if cfg.rtti == p.OFF then
settings['GCC_ENABLE_CPP_RTTI'] = 'NO'
end

if cfg.flags.Symbols and not cfg.flags.NoEditAndContinue then
settings['GCC_ENABLE_FIX_AND_CONTINUE'] = 'YES'
end

if cfg.flags.NoExceptions then
if cfg.exceptionhandling == p.OFF then
settings['GCC_ENABLE_OBJC_EXCEPTIONS'] = 'NO'
end

Expand Down

0 comments on commit 09b5c9f

Please sign in to comment.