Skip to content

Commit

Permalink
Merge pull request #22 from hez2010/patch-10
Browse files Browse the repository at this point in the history
Build corelib for all architectures
  • Loading branch information
mattgodbolt authored Dec 12, 2024
2 parents c3c03f5 + dc6ec2d commit e22fabd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ OS=linux
TIMESTAMP="$(date +%Y%m%d)"
AOT_BUILD_NEEDED=1
ILSPYCMD_VERSION="latest"
CORELIB_ARCHITECTURES=("x86" "x64" "arm" "arm64")

if echo "${VERSION}" | grep -q 'trunk'; then
VERSION=trunk-"$TIMESTAMP"
Expand Down Expand Up @@ -85,6 +86,16 @@ cp -r artifacts/bin/mono/"${OS}".x64.Release/* "${CORE_ROOT_MONO}"
# Move CORE_ROOT_MONO to CORE_ROOT/mono
mv "${CORE_ROOT_MONO}" "${CORE_ROOT}"/mono

# Build CoreLib for each architecture
mkdir "${CORE_ROOT}"/corelib

for ARCH in "${CORELIB_ARCHITECTURES[@]}"; do
cd "${DIR}"
./build.sh -s clr.corelib -arch "$ARCH" -c Release
mkdir "${CORE_ROOT}"/corelib/"$ARCH"
cp -r artifacts/bin/coreclr/linux."$ARCH".Release/IL/* "${CORE_ROOT}"/corelib/"$ARCH"
done

# Runtime build is done, now build the DisassemblyLoader
cd "${DIR}"
./.dotnet/dotnet build -c Release ../../DisassemblyLoader/DisassemblyLoader.csproj -o "${CORE_ROOT}"/DisassemblyLoader
Expand Down

0 comments on commit e22fabd

Please sign in to comment.