File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 2693
2693
]]
2694
2694
end
2695
2695
2696
+ function suite .XCBuildConfigurationProject_OnOpenMP ()
2697
+ openmp " On"
2698
+ prepare ()
2699
+ xcode .XCBuildConfiguration_Project (tr , tr .configs [1 ])
2700
+ test .capture [[
2701
+ A14350AC4595EE5E57CE36EC /* Debug */ = {
2702
+ isa = XCBuildConfiguration;
2703
+ buildSettings = {
2704
+ ARCHS = "$(NATIVE_ARCH_ACTUAL)";
2705
+ CONFIGURATION_BUILD_DIR = "$(SYMROOT)";
2706
+ CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
2707
+ GCC_OPTIMIZATION_LEVEL = 0;
2708
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
2709
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
2710
+ GCC_WARN_UNUSED_VARIABLE = YES;
2711
+ OBJROOT = obj/Debug;
2712
+ ONLY_ACTIVE_ARCH = NO;
2713
+ OTHER_CFLAGS = (
2714
+ "-fopenmp",
2715
+ );
2716
+ SYMROOT = bin/Debug;
2717
+ };
2718
+ name = Debug;
2719
+ };
2720
+ ]]
2721
+ end
2696
2722
2697
2723
function suite .XCBuildConfigurationProject_OnFloatStrict ()
2698
2724
floatingpoint " Strict"
Original file line number Diff line number Diff line change 1556
1556
[" -ffast-math" ] = cfg .floatingpoint == " Fast" ,
1557
1557
[" -fomit-frame-pointer" ] = cfg .omitframepointer == " On" ,
1558
1558
[" -fno-omit-frame-pointer" ] = cfg .omitframepointer == " Off" ,
1559
+ [" -fopenmp" ] = cfg .openmp == " On"
1559
1560
}
1560
1561
1561
1562
local flags = { }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Project configurations.
21
21
### Availability ###
22
22
23
23
Premake 5.0-beta1 or later for Visual Studio 2010+ and the MSC toolset.
24
- Premake 5.0-beta2 or later for the GCC and Clang toolsets.
24
+ Premake 5.0-beta2 or later for the GCC and Clang toolsets and for xcode .
25
25
26
26
## Examples ##
27
27
You can’t perform that action at this time.
0 commit comments