Merge pull request #1894 from Jarod42/OpenMPForXcode
Fix openmp for xcode.
This commit is contained in:
commit
1c22240cc8
@ -2693,6 +2693,32 @@
|
|||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function suite.XCBuildConfigurationProject_OnOpenMP()
|
||||||
|
openmp "On"
|
||||||
|
prepare()
|
||||||
|
xcode.XCBuildConfiguration_Project(tr, tr.configs[1])
|
||||||
|
test.capture [[
|
||||||
|
A14350AC4595EE5E57CE36EC /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
|
||||||
|
CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
|
||||||
|
CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
OBJROOT = obj/Debug;
|
||||||
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
|
OTHER_CFLAGS = (
|
||||||
|
"-fopenmp",
|
||||||
|
);
|
||||||
|
SYMROOT = bin/Debug;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
]]
|
||||||
|
end
|
||||||
|
|
||||||
function suite.XCBuildConfigurationProject_OnFloatStrict()
|
function suite.XCBuildConfigurationProject_OnFloatStrict()
|
||||||
floatingpoint "Strict"
|
floatingpoint "Strict"
|
||||||
|
@ -1556,6 +1556,7 @@
|
|||||||
["-ffast-math"] = cfg.floatingpoint == "Fast",
|
["-ffast-math"] = cfg.floatingpoint == "Fast",
|
||||||
["-fomit-frame-pointer"] = cfg.omitframepointer == "On",
|
["-fomit-frame-pointer"] = cfg.omitframepointer == "On",
|
||||||
["-fno-omit-frame-pointer"] = cfg.omitframepointer == "Off",
|
["-fno-omit-frame-pointer"] = cfg.omitframepointer == "Off",
|
||||||
|
["-fopenmp"] = cfg.openmp == "On"
|
||||||
}
|
}
|
||||||
|
|
||||||
local flags = { }
|
local flags = { }
|
||||||
|
@ -21,7 +21,7 @@ Project configurations.
|
|||||||
### Availability ###
|
### Availability ###
|
||||||
|
|
||||||
Premake 5.0-beta1 or later for Visual Studio 2010+ and the MSC toolset.
|
Premake 5.0-beta1 or later for Visual Studio 2010+ and the MSC toolset.
|
||||||
Premake 5.0-beta2 or later for the GCC and Clang toolsets.
|
Premake 5.0-beta2 or later for the GCC and Clang toolsets and for xcode.
|
||||||
|
|
||||||
## Examples ##
|
## Examples ##
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user