OLD | NEW |
---|---|
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 Loading... | |
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++-static.a |
Mark Mentovai
2015/10/23 13:56:36
You can lose the -static off of this and the other
Mark Mentovai
2015/10/23 16:46:07
Mark Mentovai wrote:
Nico
2015/10/23 17:54:42
Whoops, sorry. Done now.
| |
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++-static.a libcxx*/*.o |
48 | 48 |
49 cp libc++-static.a "${THIS_DIR}" | 49 cp libc++-static.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}" |
OLD | NEW |