Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2010-12-10 02:47:47 +0300
committerLiam Devine <dmail00@gmail.com>2010-12-10 02:47:47 +0300
commit344f2e436df19b2e8d71a8894c66d287ac0f58df (patch)
treeaaa4aaf65f655b83b5327dca8a7ba691ed626758 /tests
parentadc9dfee829b23d207c61bc4cc17c468310763fb (diff)
Sets ONLY_ACTIVE_ARCH = YES in Xcode debug builds to mirror Xcode created projects
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/xcode/test_xcode_project.lua22
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/actions/xcode/test_xcode_project.lua b/tests/actions/xcode/test_xcode_project.lua
index 4c668fe..03f5345 100644
--- a/tests/actions/xcode/test_xcode_project.lua
+++ b/tests/actions/xcode/test_xcode_project.lua
@@ -1377,7 +1377,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = NO;
+ ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
};
name = "Debug";
@@ -1511,7 +1511,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
- ONLY_ACTIVE_ARCH = NO;
+ ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
};
name = "Debug";
@@ -1858,4 +1858,22 @@ function suite.defaultVisibilitySetting_setToNo()
local buffer = io.endcapture()
test.string_contains(buffer,'GCC_SYMBOLS_PRIVATE_EXTERN = NO;')
+end
+
+function suite.releaseBuild_onlyDefaultArch_equalsNo()
+ flags { "Optimize" }
+ prepare()
+ xcode.XCBuildConfiguration_Project(tr, tr.configs[2])
+ local buffer = io.endcapture()
+
+ test.string_contains(buffer,'ONLY_ACTIVE_ARCH = NO;')
+end
+
+function suite.debugBuild_onlyDefaultArch_equalsYes()
+ flags { "Symbols" }
+ prepare()
+ xcode.XCBuildConfiguration_Project(tr, tr.configs[1])
+ local buffer = io.endcapture()
+
+ test.string_contains(buffer,'ONLY_ACTIVE_ARCH = YES;')
end \ No newline at end of file