OLD | NEW |
---|---|
(Empty) | |
1 Short Name: libcxx | |
2 Name: Descriptive name of the package | |
3 Short Name: Name the package is distributed under (ex. libxml, openssl, etc) | |
4 Security Critical: Yes | |
5 License: MIT | |
6 Version: r245965 | |
7 | |
8 To upload: | |
9 python ~/depot_tools/upload_to_google_storage.py -b chromium-libcpp third_part y/libc++-static.a | |
10 | |
11 To initialize gsutil's credentials: | |
12 python ~/depot_tools/third_party/gsutil/gsutil config | |
13 | |
14 That will give a URL which you should log into with your web browser. The | |
15 username should be the one that is on the ACL for the "chromium-libcpp" | |
16 bucket (probably your @google.com address). Contact the build team for help | |
17 getting access if necessary. | |
18 | |
19 Copy the code back to the command line util. Ignore the project ID (it's OK | |
20 to just leave blank when prompted). | |
21 | |
22 gsutil documentation: | |
23 https://developers.google.com/storage/docs/gsutil | |
24 | |
25 | |
26 To build: | |
27 | |
28 cd /tmp/ | |
Mark Mentovai
2015/10/22 21:54:27
This is basically a script. Can you make it a real
Nico
2015/10/22 22:05:41
Yeah, I really should. Will do.
| |
29 mkdir tmp | |
30 cd tmp | |
31 svn co --force https://llvm.org/svn/llvm-project/libcxx/trunk@245965 libcxx | |
32 svn co --force https://llvm.org/svn/llvm-project/libcxxabi/trunk@245965 libcxxab i | |
33 | |
34 mkdir libcxxbuild | |
35 cd libcxxbuild | |
36 mkdir libcxx | |
37 mkdir libcxxabi | |
38 cd libcxx | |
39 | |
40 sed -i '' 's/"default"/"hidden"/g' ../../libcxx/include/__config | |
41 | |
42 c++ -c -nostdinc++ -I../../libcxx/include/ -O3 -std=c++11 -fstrict-aliasing ../. ./libcxx/src/*.cpp -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-vers ion-min=10.6 -arch i386 -arch x86_64 | |
Mark Mentovai
2015/10/22 21:54:27
Whose c++, Chrome’s or the system’s? Preferably Ch
Nico
2015/10/22 22:05:41
That'd be better, yes. Will change.
| |
43 | |
44 cd ../libcxxabi | |
45 sed -i '' 's/"default"/"hidden"/g' ../../libcxxabi/src/* | |
46 sed -i '' 's/push(default)/push(hidden)/g' ../../libcxxabi/src/* | |
47 | |
48 c++ -c -nostdinc++ -I../../libcxx/include/ -I../../libcxxabi/include -O3 -std=c+ +11 -fstrict-aliasing ../../libcxxabi/src/*.cpp -fvisibility=hidden -fvisibility -inlines-hidden -mmacosx-version-min=10.6 -arch i386 -arch x86_64 | |
Mark Mentovai
2015/10/22 21:54:27
Where do these object files go?
Nico
2015/10/22 22:05:41
Note the subtle first * in `libcxx*/*.o` in the li
Mark Mentovai
2015/10/22 22:57:45
Nico wrote:
| |
49 | |
50 cd .. | |
51 | |
52 libtool -static -o libc++-static.a libcxx*/*.o | |
53 | |
54 And then: | |
55 cp libc++-static.a path/to/chrome/src/third_party/libc++-static | |
56 cd path/to/chrome/src | |
57 python ~/depot_tools/upload_to_google_storage.py -b chromium-libcpp third_party/ libc++-static.a | |
Mark Mentovai
2015/10/22 21:54:27
depot_tools should be in the PATH for most people,
| |
OLD | NEW |