Also use the same cctools as cross-mac builds of Firefox. Do dummy changes to the corresponding build scripts so that the builds are force triggered (toolchain builds are not triggered automatically when the tooltool manifest they use changes yet).
35 lines
1009 B
Bash
Executable File
35 lines
1009 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for building clang for Mac OS X on Linux.
|
|
WORKSPACE=$HOME/workspace
|
|
HOME_DIR=$WORKSPACE/build
|
|
UPLOAD_DIR=$WORKSPACE/artifacts
|
|
|
|
cd $HOME_DIR/src
|
|
|
|
TOOLTOOL_MANIFEST=browser/config/tooltool-manifests/macosx64/cross-clang.manifest
|
|
. taskcluster/scripts/misc/tooltool-download.sh
|
|
|
|
# ld needs libLTO.so from llvm
|
|
export LD_LIBRARY_PATH=$HOME_DIR/src/clang/lib
|
|
# these variables are used in build-clang.py
|
|
export CROSS_CCTOOLS_PATH=$HOME_DIR/src/cctools
|
|
export CROSS_SYSROOT=$HOME_DIR/src/MacOSX10.10.sdk
|
|
# cmake doesn't allow us to specify a path to lipo on the command line.
|
|
export PATH=$PATH:$CROSS_CCTOOLS_PATH/bin
|
|
ln -sf $CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin11-lipo $CROSS_CCTOOLS_PATH/bin/lipo
|
|
|
|
# gets a bit too verbose here
|
|
set +x
|
|
|
|
cd build/build-clang
|
|
# |mach python| sets up a virtualenv for us!
|
|
../../mach python ./build-clang.py -c clang-tidy-macosx64.json
|
|
|
|
set -x
|
|
|
|
# Put a tarball in the artifacts dir
|
|
mkdir -p $UPLOAD_DIR
|
|
cp clang-tidy.tar.* $UPLOAD_DIR
|