Skip to content

Commit c3611dd

Browse files
committed
fix mm -x
1 parent e4412d5 commit c3611dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commandLine/src/projects/xcodeProject.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ if( type == DEFAULT ){
453453
else if (ext == ".swift"){
454454
fp.addToBuildPhase = true;
455455
for (auto &c : buildConfigs) {
456-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_SWIFT_FLAGS: string -cxx-interoperability-mode=swift-5.9");
456+
addCommand("Add :objects:" + c + ":buildSettings:OTHER_SWIFT_FLAGS: string " + "-cxx-interoperability-mode=swift-5.9");
457457
// mark all Swift files as C++ interop available :)
458458
}
459459
}
@@ -506,10 +506,10 @@ void xcodeProject::addCompileFlagsForMMFile(const fs::path & srcFile) {
506506

507507
// Tag file as Objective-C++ in Xcode build settings
508508
for (auto & c : buildConfigs) {
509-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string -x objective-c++");
509+
// addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string " + "-xobjective-c++");
510510

511511
if (requiresNoARC) {
512-
addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string -fno-objc-arc");
512+
addCommand("Add :objects:" + c + ":buildSettings:OTHER_CPLUSPLUSFLAGS: string " + "-fno-objc-arc");
513513
}
514514
}
515515

0 commit comments

Comments
 (0)