From 5384742276e51a6ec3839dcce872b4d68053be0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 10 Sep 2019 16:36:48 +0200 Subject: [PATCH] Fix publishing crossgen2 on macOS Commit migrated from https://github.com/dotnet/coreclr/commit/433ac06f7f6aea858d1ba4ab927393488cae222b --- src/coreclr/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/coreclr/build.sh b/src/coreclr/build.sh index 376ab84..e67c698 100755 --- a/src/coreclr/build.sh +++ b/src/coreclr/build.sh @@ -446,8 +446,14 @@ build_CoreLib() if [[ "$__BuildManagedTools" -eq "1" ]]; then echo "Publishing crossgen2 for $__DistroRid" "$__ProjectRoot/dotnet.sh" publish --self-contained -r $__DistroRid -c $__BuildType -o "$__BinDir/crossgen2" "$__ProjectRoot/src/tools/crossgen2/crossgen2/crossgen2.csproj" - cp "$__BinDir/libclrjit.so" "$__BinDir/crossgen2/libclrjitilc.so" - cp "$__BinDir/libjitinterface.so" "$__BinDir/crossgen2/libjitinterface.so" + + if [ "$__HostOS" == "OSX" ]; then + cp "$__BinDir/libclrjit.dylib" "$__BinDir/crossgen2/libclrjitilc.dylib" + cp "$__BinDir/libjitinterface.dylib" "$__BinDir/crossgen2/libjitinterface.dylib" + else + cp "$__BinDir/libclrjit.so" "$__BinDir/crossgen2/libclrjitilc.so" + cp "$__BinDir/libjitinterface.so" "$__BinDir/crossgen2/libjitinterface.so" + fi fi local __CoreLibILDir=$__BinDir/IL -- 2.7.4