Skip to content
Snippets Groups Projects
Unverified Commit 1dbc7555 authored by boklm's avatar boklm
Browse files

Bug 21328: Updating to clang 3.8.0

We use the new compiler Mozilla is using for Firefox 52 cross-builds as
well. clang now requires GCC 4.8.5 for compiling which is not available
in Debian Wheezy. We therefore build the macOS parts on Debian Jessie
now.
parent 916f9977
No related branches found
No related tags found
No related merge requests found
File added
#!/bin/bash
[% c("var/set_default_env") -%]
tar xf [% project %]-[% c("version") %].tar.gz
mv [% project %]-[% c("version") %] [% project %]
[% c('tar', {
tar_src => [ project ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
version: r247539
git_url: https://github.com/llvm-mirror/clang
git_hash: 592b43b609b42cffd1531a700c140e10766bf049
filename: '[% project %]-src-[% c("version") %]-[% c("var/build_id") %].tar.gz'
......@@ -5,10 +5,19 @@ mkdir -p /var/tmp/dist
tar -C /var/tmp/dist -xf [% c('input_files_by_name/cmake') %]
export PATH="/var/tmp/dist/cmake/bin:$PATH"
mkdir -p /var/tmp/build
tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
cd /var/tmp/build/[% project %]-[% c("version") %]
cd /var/tmp/build
tar -xf $rootdir/[% c('input_files_by_name/llvm') %]
tar -xf $rootdir/[% c('input_files_by_name/cfe') %]
tar -xf $rootdir/[% c('input_files_by_name/libcxx') %]
tar -xf $rootdir/[% c('input_files_by_name/libcxxabi') %]
mv cfe-* clang
mv libcxx-* libcxx
mv libcxxabi-* libcxxabi
mv clang llvm-*/tools
mv libcxx llvm-*/projects
mv libcxxabi llvm-*/projects
cd llvm-*
export LLVM_HOME=$(pwd)
tar -C $LLVM_HOME/tools -xf $rootdir/[% c('input_files_by_name/clang') %]
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$distdir -DCMAKE_BUILD_TYPE:STRING=Release $LLVM_HOME
......
# vim: filetype=yaml sw=2
version: 8f188e0ea735ac9383a65a0d1c846eb790c2ec74
git_url: https://github.com/llvm-mirror/llvm
git_hash: '[% c("version") %]'
version: 3.8.0
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
remote_docker: 1
......@@ -9,5 +7,27 @@ input_files:
- project: docker-image
- project: cmake
name: cmake
- project: clang
name: clang
- URL: 'http://releases.llvm.org/[% c("version") %]/llvm-[% c("version") %].src.tar.xz'
# no proper HTTPS
name: llvm
sig_ext: sig
file_gpg_id: 1
gpg_keyring: llvm.gpg
- URL: 'http://releases.llvm.org/[% c("version") %]/cfe-[% c("version") %].src.tar.xz'
# no proper HTTPS
name: cfe
sig_ext: sig
file_gpg_id: 1
gpg_keyring: llvm.gpg
- URL: 'http://releases.llvm.org/[% c("version") %]/libcxx-[% c("version") %].src.tar.xz'
# no proper HTTPS
name: libcxx
sig_ext: sig
file_gpg_id: 1
gpg_keyring: llvm.gpg
- URL: 'http://releases.llvm.org/[% c("version") %]/libcxxabi-[% c("version") %].src.tar.xz'
# no proper HTTPS
name: libcxxabi
sig_ext: sig
file_gpg_id: 1
gpg_keyring: llvm.gpg
......@@ -61,7 +61,7 @@ find -type f -print0 | xargs -0 [% c("var/touch") %]
[% IF c("var/osx") %]--enable-static-openssl[% END %] \
--prefix="$distdir" [% c("var/configure_opt") %]
[% IF c("var/osx") -%]
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1
export FAKETIME="[% USE date; GET date.format(c('timestamp'), format = '%Y-%m-%d %H:%M:%S') %]"
[% END -%]
make -j4
......
......@@ -166,7 +166,7 @@ targets:
torbrowser-osx-x86_64:
- osx-x86_64
osx-x86_64:
distribution: Debian-7.11
distribution: Debian-8.7
arch: x86_64
var:
osx: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment