Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osx-arm64 target #23

Merged
merged 51 commits into from Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
a3232f5
osx-arm64 target
isuruf Aug 7, 2020
a01dde9
fix cross_platform
isuruf Aug 7, 2020
d9f5aad
fix linter
isuruf Aug 7, 2020
3aa271b
MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.6, and con…
Aug 7, 2020
9d2eff2
Don't build ld64 meta package when cross compiling
isuruf Aug 7, 2020
f325659
Fix linux build
isuruf Aug 7, 2020
48d9bd3
verbose
isuruf Aug 7, 2020
e5d37bc
MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.7.dev9, an…
isuruf Aug 8, 2020
5326faf
use llvm tools for arm64
isuruf Aug 8, 2020
4126804
Merge branch 'master' of github.com:conda-forge/cctools-and-ld64-feed…
isuruf Aug 8, 2020
7412e6b
Add ld links
isuruf Aug 8, 2020
2befe80
Use llvm 11.0.0.rc1
isuruf Aug 8, 2020
75206ed
MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.7.dev9, an…
isuruf Aug 8, 2020
231adbd
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration CFEP1…
Aug 9, 2020
f13df95
MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.7.post.dev…
isuruf Aug 9, 2020
6987bb6
Change the host from macos11 to darwin20
isuruf Aug 11, 2020
754cb2b
MNT: Re-rendered with conda-build 3.19.2, conda-smithy 3.7.9, and con…
isuruf Aug 11, 2020
cc9cd16
make build number 5
isuruf Aug 12, 2020
884bf9b
llvm-ar and ranlib doesn't support triplets
isuruf Aug 12, 2020
954fa01
Fix test
isuruf Aug 12, 2020
c80a736
Fix LTO on linux
isuruf Aug 14, 2020
e671b78
Merge remote-tracking branch 'origin/lto_linux' into osx-arm64
isuruf Aug 14, 2020
c477cc5
Don't use strip from llvm
isuruf Aug 14, 2020
ffdc1a3
Merge remote-tracking branch 'upstream/rc' into HEAD
isuruf Aug 14, 2020
a28f0c9
Build for new tapi
isuruf Aug 15, 2020
ed11fbe
Use the linker on arm64 too
isuruf Aug 15, 2020
cc69b4e
use assembler from cctools
isuruf Sep 4, 2020
c8f387b
don't exit
isuruf Sep 4, 2020
f511e93
Don't need GNU as
isuruf Sep 4, 2020
34101f0
add comment
isuruf Sep 4, 2020
452d5ef
update patch
isuruf Oct 1, 2020
75ea590
need ldid
isuruf Oct 1, 2020
6f13a19
Use full path to ldid
isuruf Oct 2, 2020
95dbd19
bump build number
isuruf Oct 2, 2020
275110d
Update to latest master
isuruf Oct 4, 2020
0bb93fe
update to latest master
isuruf Oct 4, 2020
6030dc4
update to latest master again
isuruf Oct 5, 2020
268baaf
Create gh93.patch
beckermr Oct 7, 2020
18b8103
Update meta.yaml
beckermr Oct 7, 2020
23ed700
Delete gh93.patch
beckermr Oct 7, 2020
f74fc8d
update to latest commit
beckermr Oct 7, 2020
d147c63
MNT: Re-rendered with conda-build 3.20.3, conda-smithy 3.8.2, and con…
isuruf Oct 14, 2020
82a86f3
Update to 11.0.0 and upload to main
isuruf Oct 14, 2020
e971e14
flexible
isuruf Oct 14, 2020
98f35cb
bump build number
isuruf Oct 14, 2020
9148040
osx-64 -> osx-*
isuruf Oct 14, 2020
755fb4d
channels
isuruf Oct 14, 2020
6c514bb
MNT: Re-rendered with conda-build 3.20.3, conda-smithy 3.8.2, and con…
isuruf Oct 14, 2020
21f67d4
test on native only
isuruf Oct 14, 2020
6362e00
MNT: Re-rendered with conda-build 3.20.3, conda-smithy 3.8.2, and con…
isuruf Oct 14, 2020
a674923
remove use_llvm_tools option
isuruf Oct 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,7 +1,9 @@
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cross_platform:
- osx-64
cxx_compiler:
- gxx
cxx_compiler_version:
Expand All @@ -17,5 +19,16 @@ pin_run_as_build:
max_pin: x
zlib:
max_pin: x.x
target_platform:
- linux-64
uname_machine:
- x86_64
use_llvm_tools:
- 'False'
zip_keys:
- - macos_machine
- cross_platform
- uname_machine
- use_llvm_tools
zlib:
- '1.2'
@@ -0,0 +1,34 @@
channel_sources:
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge llvm_rc
cross_platform:
- osx-arm64
cxx_compiler:
- gxx
cxx_compiler_version:
- '7'
docker_image:
- condaforge/linux-anvil-comp7
libuuid:
- 2.32.1
macos_machine:
- arm64-apple-darwin20.0.0
pin_run_as_build:
libuuid:
max_pin: x
zlib:
max_pin: x.x
target_platform:
- linux-64
uname_machine:
- arm64
use_llvm_tools:
- 'True'
zip_keys:
- - macos_machine
- cross_platform
- uname_machine
- use_llvm_tools
zlib:
- '1.2'
@@ -1,9 +1,11 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cross_platform:
- osx-64
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
Expand All @@ -15,5 +17,16 @@ macos_min_version:
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- osx-64
uname_machine:
- x86_64
use_llvm_tools:
- 'False'
zip_keys:
- - macos_machine
- cross_platform
- uname_machine
- use_llvm_tools
zlib:
- '1.2'
@@ -0,0 +1,32 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
channel_sources:
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge llvm_rc
cross_platform:
- osx-arm64
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '*'
macos_machine:
- arm64-apple-darwin20.0.0
macos_min_version:
- '10.9'
pin_run_as_build:
zlib:
max_pin: x.x
target_platform:
- osx-64
uname_machine:
- arm64
use_llvm_tools:
- 'True'
zip_keys:
- - macos_machine
- cross_platform
- uname_machine
- use_llvm_tools
zlib:
- '1.2'
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 26 additions & 19 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion conda-forge.yml
@@ -1,2 +1 @@
upload_on_branch: master
conda_forge_output_validation: true
16 changes: 3 additions & 13 deletions recipe/build.sh
Expand Up @@ -13,7 +13,7 @@ fi
export cctools_cv_tapi_support=yes

pushd cctools
LLVM_LTO_LIBRARY=$(find $PREFIX/lib -name "libLTO*${SHLIB_EXT}")
LLVM_LTO_LIBRARY=$(find $PREFIX/lib -name "libLTO.*.*")
LLVM_LTO_LIBRARY="$(basename $LLVM_LTO_LIBRARY)"
sed -i.bak "s/libLTO.dylib/${LLVM_LTO_LIBRARY}/g" ld64/src/ld/InputFiles.cpp
sed -i.bak "s@llvm/libLTO.so@${LLVM_LTO_LIBRARY}@g" ld64/src/ld/InputFiles.cpp
Expand All @@ -31,17 +31,6 @@ popd
export CXXFLAGS="$CXXFLAGS -O2 -gdwarf-4"
export CFLAGS="$CFLAGS -O2 -gdwarf-4"

if [[ ${MACOSX_DEPLOYMENT_TARGET} == 10.10 ]]; then
DARWIN_TARGET=x86_64-apple-darwin14.5.0
else
DARWIN_TARGET=x86_64-apple-darwin13.4.0
fi

if [[ -z ${DARWIN_TARGET} ]]; then
echo "Need a valid DARWIN_TARGET"
exit 1
fi

pushd ${SRC_DIR}/cctools
./autogen.sh
popd
Expand All @@ -52,8 +41,9 @@ pushd cctools_build_final
--prefix=${PREFIX} \
--host=${HOST} \
--build=${BUILD} \
--target=${DARWIN_TARGET} \
--target=${macos_machine} \
--disable-static \
--with-libtapi=${PREFIX} \
--enable-shared || (cat config.log && cat config.status && false)
cat config.log
cat config.status
Expand Down
20 changes: 20 additions & 0 deletions recipe/conda_build_config.yaml
@@ -1,5 +1,20 @@
macos_machine:
- x86_64-apple-darwin13.4.0
- arm64-apple-darwin20.0.0
cross_platform:
- osx-64
- osx-arm64
uname_machine:
- x86_64
- arm64
use_llvm_tools:
- False
- True
zip_keys:
- - macos_machine
- cross_platform
- uname_machine
- use_llvm_tools
cxx_compiler:
- clang_bootstrap # [osx]
- gxx # [linux]
Expand All @@ -16,3 +31,8 @@ c_compiler_version: # [osx]
- "*" # [osx]
cxx_compiler_version: # [osx]
- "*" # [osx]

channel_targets:
- conda-forge llvm_rc
channel_sources:
- conda-forge/label/llvm_rc,conda-forge,defaults
2 changes: 1 addition & 1 deletion recipe/install-cctools-symlinks.sh
Expand Up @@ -2,6 +2,6 @@ prefix="${macos_machine}-"

pushd $PREFIX/bin
for tool in $(ls ${prefix}*); do
ln -s $PREFIX/bin/$tool $PREFIX/bin/${tool:${#prefix}}
ln -s $PREFIX/bin/$tool $PREFIX/bin/${tool:${#prefix}} || true
done
popd
6 changes: 6 additions & 0 deletions recipe/install-cctools.sh
Expand Up @@ -13,3 +13,9 @@ pushd "${PREFIX}"
# This is packaged in ld64
rm bin/*-ld
popd

if [[ "$use_llvm_tools" == "True" ]]; then
for tool in lipo nm size; do
ln -sf $PREFIX/bin/llvm-$tool $PREFIX/bin/$macos_machine-$tool
done
fi