Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/v2' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
qno committed Jun 12, 2024
2 parents 8120b16 + 338f729 commit 2da3859
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ $(toolchain-mac): export PATH := $(LOCAL_DIR)/osxcross/bin:$(PATH)
$(toolchain-mac):
# Obtain osxcross sources.
# FIXME Use official osxcross version when workaround from our fork are not required anymore.
git clone "https://github.com/cschol/osxcross.git" osxcross
cd osxcross && git checkout ae54314c24a959cd90ebb1f3aff3507677d36591
git clone "https://github.com/tpoechtrager/osxcross.git" osxcross
cd osxcross && git checkout ff8d100f3f026b4ffbe4ce96d8aac4ce06f1278b

# Build a custom clang compiler using the system's gcc compiler.
# This enables us to have custom compiler environment needed for cross-compilation.
Expand All @@ -91,7 +91,9 @@ $(toolchain-mac):

## Build MacOS binutils and build LLVM gold.
cd osxcross && BINUTILS_VERSION=$(OSXCROSS_BINUTILS_VERSION) TARGET_DIR="$(LOCAL_DIR)/osxcross" JOBS=$(JOBS) ./build_binutils.sh
cd osxcross/build/build_stage && cmake . -DLLVM_BINUTILS_INCDIR=$(PWD)/osxcross/build/binutils-$(OSXCROSS_BINUTILS_VERSION)/include && make install -j $(JOBS)

# This doesn't seem to work anymore
#cd osxcross/build/build_stage && cmake . -DLLVM_BINUTILS_INCDIR=$(PWD)/osxcross/build/binutils-$(OSXCROSS_BINUTILS_VERSION)/include && make install -j $(JOBS)

# Fix library paths (for Arch Linux and Ubuntu arm64).
export PLATFORM_ID=$$($(LOCAL_DIR)/bin/clang -dumpmachine) ; \
Expand Down

0 comments on commit 2da3859

Please sign in to comment.