Merge commit 'f8dd96543542220181c76afb8c084f4908213fb5' as 'third_party/mason'

This commit is contained in:
Patrick Niklaus
2016-12-15 10:31:15 +00:00
796 changed files with 30230 additions and 0 deletions
@@ -0,0 +1,21 @@
language: generic
matrix:
include:
- os: osx
osx_image: xcode8
compiler: clang
- os: linux
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-5-dev
- bison
- texinfo
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
MASON_NAME=binutils
MASON_VERSION=f0e9390be
MASON_LIB_FILE=bin/ld
. ${MASON_DIR}/mason.sh
function mason_load_source {
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
git clone git://sourceware.org/git/binutils-gdb.git ${MASON_BUILD_PATH}
cd ${MASON_BUILD_PATH}
git checkout f0e9390be5bbfa3ee777d81dacfccd713ebddb68
cd ../
}
function mason_compile {
# we unset CFLAGS otherwise they will clobber defaults inside binutils
unset CFLAGS
./configure \
--prefix=${MASON_PREFIX} \
--enable-gold \
--enable-plugins \
--enable-static \
--disable-shared \
--disable-werror \
--disable-dependency-tracking
make -j${MASON_CONCURRENCY}
make install
}
function mason_ldflags {
:
}
function mason_clean {
make clean
}
mason_run "$@"