1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Apple fixes

This commit is contained in:
Brian Fiete 2019-10-29 05:01:04 -07:00
parent 43b69023f6
commit 9f3fded709
23 changed files with 847 additions and 425 deletions

View file

@ -204,6 +204,8 @@ namespace IDE
arPath.Clear();
arPath.Append(gApp.mInstallDir);
arPath.Append(@"llvm\bin\llvm-ar.exe");
#elif BF_PLATFORM_MACOS
arPath.Append("llvm/bin/llvm-ar");
#else
arPath.Append("/usr/bin/ar");
#endif
@ -495,9 +497,9 @@ namespace IDE
if ((platformType == .macOS) || (platformType == .iOS))
{
if (options.mBuildOptions.mBeefLibType == .DynamicDebug)
outRt.Append("libBeefRT_d.dylib");
outRt.Append("libBeefRT_d.a");
else
outRt.Append("libBeefRT.dylib");
outRt.Append("libBeefRT.a");
return;
}

View file

@ -8519,7 +8519,7 @@ namespace IDE
default:
}
case .macOS:
newString.AppendF("./{} -Wl,-rpath -Wl,.", rtName);
newString.AppendF("./{} -Wl,-rpath -Wl,@executable_path", rtName);
case .iOS:
case .Linux:
newString.AppendF("./{} -Wl,-rpath -Wl,$ORIGIN", rtName);