Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/libc++-static/build.sh

Issue 1413863003: mac: In static library builds, link against a static libc++.a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: haaaaack Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/tools/build/mac/verify_order ('k') | third_party/libc++-static/libc++-static.a.sha1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 set -eux 6 set -eux
7 7
8 REV=245965 8 REV=245965
9 DIR=$(mktemp -d -t libcpp) 9 DIR=$(mktemp -d -t libcpp)
10 10
(...skipping 20 matching lines...) Expand all
31 sed -i '' 's/"default"/"hidden"/g' ../../libcxx/include/__config 31 sed -i '' 's/"default"/"hidden"/g' ../../libcxx/include/__config
32 "$CXX" -c -I../../libcxx/include/ ../../libcxx/src/*.cpp $FLAGS 32 "$CXX" -c -I../../libcxx/include/ ../../libcxx/src/*.cpp $FLAGS
33 popd 33 popd
34 34
35 mkdir libcxxabi 35 mkdir libcxxabi
36 pushd libcxxabi 36 pushd libcxxabi
37 sed -i '' 's/"default"/"hidden"/g' ../../libcxxabi/src/* 37 sed -i '' 's/"default"/"hidden"/g' ../../libcxxabi/src/*
38 sed -i '' 's/push(default)/push(hidden)/g' ../../libcxxabi/src/* 38 sed -i '' 's/push(default)/push(hidden)/g' ../../libcxxabi/src/*
39 39
40 # Let the default handler not depend on __cxa_demangle, this saves 0.5MB binary 40 # Let the default handler not depend on __cxa_demangle, this saves 0.5MB binary
41 # size in each binary linking against libc++-static.a 41 # size in each binary linking against libc++.a
42 patch -d ../../libcxxabi -p0 < "${THIS_DIR}/libcxxabi.patch" 42 patch -d ../../libcxxabi -p0 < "${THIS_DIR}/libcxxabi.patch"
43 43
44 "$CXX" -c -I../../libcxx/include/ -I../../libcxxabi/include ../../libcxxabi/src/ *.cpp $FLAGS 44 "$CXX" -c -I../../libcxx/include/ -I../../libcxxabi/include ../../libcxxabi/src/ *.cpp $FLAGS
45 popd 45 popd
46 46
47 libtool -static -o libc++-static.a libcxx*/*.o 47 libtool -static -o libc++.a libcxx*/*.o
48 48
49 cp libc++-static.a "${THIS_DIR}" 49 cp libc++.a "${THIS_DIR}/libc++.a"
50 upload_to_google_storage.py -b chromium-libcpp "${THIS_DIR}/libc++-static.a" 50 upload_to_google_storage.py -b chromium-libcpp "${THIS_DIR}/libc++.a"
51 51
52 popd 52 popd
53 rm -rf "${DIR}" 53 rm -rf "${DIR}"
OLDNEW
« no previous file with comments | « chrome/tools/build/mac/verify_order ('k') | third_party/libc++-static/libc++-static.a.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698