Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 883a684

Browse files
committed
[[ Bug 23234 ]] Fix iOS standalone build error when running from source
This patch fixes the error: Failed to open macho file at /../Xcodes/Xcode_12_5_0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ for reading: Too many levels of symbolic links It seems there is a chance g++ is not symlinked correctly, so use the full path to clang++ instead.
1 parent ec509e4 commit 883a684

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ide-support/revsaveasiosstandalone.livecodescript

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,11 @@ private command revSaveAsMobileStandaloneMain pStack, pAppBundle, pTarget, pSett
535535
-- MM-2013-09-23: [[ iOS7 Support ]] Use g++ instead of llvm-g++-4.2. XCode 5.0 uses llvm 5.0.
536536
-- g++ appears to be sym-linked to the appropriate compiler in all SDKS.
537537
-- SN-2015-02-19: [[ Bug 14625 ]] The minimum iOS version is bound to the architecture
538-
get shell("g++ -arch " & tArch && "-miphoneos-version-min=" & tiPhoneMinVersion[tArch] && " -w " & quote & "@" & tLinkOptionsFile & quote)
538+
539+
-- PM-2021-06-10: [[ Bug 23234 ]] g++ might not be symlinked correctly, so use full path to clang++ instead
540+
local tCommand
541+
put tSdkRoot & "/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" into tCommand
542+
get shell(tCommand & " -arch " & tArch && "-miphoneos-version-min=" & tiPhoneMinVersion[tArch] && " -w " & quote & "@" & tLinkOptionsFile & quote)
539543

540544
put tArchSpecificEngineFile & space after tArchSpecificEngineList
541545
delete file tLinkOptionsFile

0 commit comments

Comments
 (0)