File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ jobs:
154
154
--out docs \
155
155
--include-file-pattern /sus/ \
156
156
--exclude-file-pattern /third_party/ \
157
+ --exclude-file-pattern /test/ \
158
+ --exclude-file-pattern test.cc \
157
159
--copy-file subdoc/gen_tests/subdoc-test-style.css \
158
160
--copy-file web/logo.png \
159
161
--copy-file web/logo32.png \
Original file line number Diff line number Diff line change @@ -392,6 +392,8 @@ jobs:
392
392
--out docs \
393
393
--include-file-pattern /sus/ \
394
394
--exclude-file-pattern /third_party/ \
395
+ --exclude-file-pattern /test/ \
396
+ --exclude-file-pattern test.cc \
395
397
--copy-file subdoc/gen_tests/subdoc-test-style.css \
396
398
--copy-file web/logo.png \
397
399
--copy-file web/logo32.png \
Original file line number Diff line number Diff line change 9
9
# Default: true
10
10
# * BENCHMARKS=[true|false] to build benchmarks.
11
11
# Default: true
12
+ # * USE_BREW=[true|false] to use clang/libc++ from homebrew on MacOS.
12
13
#
13
14
# Requires LLVM:
14
15
# * SUBDOC=[true|false] to build subdoc. This requires an LLVM installation.
@@ -38,6 +39,7 @@ if [[ $LLVM_ROOT == "" ]]; then LLVM_ROOT=$HOME/s/llvm/install; fi
38
39
if [[ $USE_ASAN == " " ]]; then USE_ASAN=false; fi
39
40
if [[ $USE_LLD == " " ]]; then USE_LLD=false; fi
40
41
if [[ $USE_LLVM_CLANG == " " ]]; then USE_LLVM_CLANG=false; fi
42
+ if [[ $USE_BREW == " " ]]; then USE_BREW=false; fi
41
43
42
44
# System detection.
43
45
if [[ $OSTYPE == darwin* ]]; then IS_MAC=true; else IS_MAC=false; fi
@@ -91,6 +93,11 @@ if [[ $IS_MAC == true && $USE_ASAN == true ]]; then
91
93
RESOURCE_DIR=$( $CLANG --print-resource-dir)
92
94
run codesign -f -s - " $RESOURCE_DIR /lib/darwin/libclang_rt.asan_osx_dynamic.dylib"
93
95
fi
96
+ if [[ $USE_BREW == true ]]; then
97
+ set_env CC=" /opt/homebrew/opt/llvm/bin/clang"
98
+ set_env CXX=" /opt/homebrew/opt/llvm/bin/clang++"
99
+ set_env LDFLAGS=" -L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++ $LDFLAGS "
100
+ fi
94
101
95
102
set_env LLVM_DIR=" $LLVM_ROOT /lib/cmake/llvm"
96
103
set_env Clang_DIR=" $LLVM_ROOT /lib/cmake/clang"
Original file line number Diff line number Diff line change 1
1
out\subdoc\subdoc -p out --out docs ^
2
2
--include-file-pattern /sus/ ^
3
3
--exclude-file-pattern /third_party/ ^
4
+ --exclude-file-pattern /test/ ^
5
+ --exclude-file-pattern test.cc ^
4
6
--css subdoc-test-style.css ^
5
7
--copy-file subdoc/gen_tests/subdoc-test-style.css ^
6
8
--copy-file web/logo.png ^
Original file line number Diff line number Diff line change 3
3
out/subdoc/subdoc -p out --out docs \
4
4
--include-file-pattern /sus/ \
5
5
--exclude-file-pattern /third_party/ \
6
+ --exclude-file-pattern /test/ \
7
+ --exclude-file-pattern test.cc \
6
8
--css subdoc-test-style.css \
7
9
--copy-file subdoc/gen_tests/subdoc-test-style.css \
8
10
--copy-file web/logo.png \
You can’t perform that action at this time.
0 commit comments