-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[target.x86_64-apple-darwin] | ||
linker = "x86_64-apple-darwin15-cc" | ||
ar = "x86_64-apple-darwin15-ar" | ||
# fails with "Undefined symbols for architecture x86_64" errors when these are not set | ||
rustflags = [ "-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup" ] | ||
|
||
[target.x86_64-pc-windows-gnu] | ||
# use --no-insert-timestamp to drop PE timestamps in Windows builds for reproducibility | ||
# https://wiki.debian.org/ReproducibleBuilds/TimestampsInPEBinaries#building_with_mingw-w64 | ||
rustflags = [ "-C", "link-arg=-Wl,--no-insert-timestamp" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM bwt-builder | ||
|
||
ARG CROSSOSX_COMMIT=364703ca0962c4a12688daf8758802a5df9e3221 | ||
ARG OSX_SDK_VERSION=10.11 | ||
ARG OSX_SDK_SHASUM=694a66095a3514328e970b14978dc78c0f4d170e590fa7b2c3d3674b75f0b713 | ||
|
||
RUN apt-get install -y git wget clang cmake libxml2-dev zlib1g-dev && \ | ||
rustup target add x86_64-apple-darwin | ||
|
||
RUN git clone https://github.com/tpoechtrager/osxcross /usr/src/osxcross && \ | ||
cd /usr/src/osxcross && \ | ||
git checkout $CROSSOSX_COMMIT && \ | ||
wget -q https://s3.dockerproject.org/darwin/v2/MacOSX$OSX_SDK_VERSION.sdk.tar.xz --directory-prefix=tarballs && \ | ||
echo "$OSX_SDK_SHASUM tarballs/MacOSX$OSX_SDK_VERSION.sdk.tar.xz" | sha256sum -c - && \ | ||
UNATTENDED=yes OSX_VERSION_MIN=10.7 ./build.sh | ||
|
||
ENV TARGETS=osx | ||
ENV PATH=$PATH:/usr/src/osxcross/target/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters