File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ jobs:
195
195
-DCLANG_BUILD_TOOLS=OFF \
196
196
-DLLVM_NATIVE_TOOL_DIR=$NATIVE_DIR \
197
197
../llvm
198
- emmake ninja clang cling lld gtest_main
198
+ EMCC_CFLAGS="-Oz" emmake ninja clang cling lld gtest_main
199
199
else
200
200
# Apply patches
201
201
llvm_vers=$(echo "${{ matrix.clang-runtime }}" | tr '[:lower:]' '[:upper:]')
@@ -226,7 +226,7 @@ jobs:
226
226
-G Ninja \
227
227
-DLLVM_NATIVE_TOOL_DIR=$NATIVE_DIR \
228
228
../llvm
229
- emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
229
+ EMCC_CFLAGS="-Oz" emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
230
230
fi
231
231
cd ../
232
232
rm -rf $(find . -maxdepth 1 ! -name "build" ! -name "llvm" ! -name "clang" ! -name ".")
@@ -296,6 +296,7 @@ jobs:
296
296
-DLLVM_ENABLE_LIBPFM=OFF `
297
297
-DCLANG_BUILD_TOOLS=OFF `
298
298
..\llvm
299
+ $env:EMCC_CFLAGS="-Oz"
299
300
emmake make clang cling lld gtest_main
300
301
}
301
302
else
@@ -337,6 +338,7 @@ jobs:
337
338
-DCLANG_BUILD_TOOLS=OFF `
338
339
-G Ninja `
339
340
..\llvm
341
+ $env:EMCC_CFLAGS="-Oz"
340
342
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
341
343
}
342
344
cd ..\
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release \
100
100
-DCLANG_BUILD_TOOLS=OFF \
101
101
-DLLVM_NATIVE_TOOL_DIR=$NATIVE_DIR \
102
102
../llvm
103
- emmake make libclang -j $( nproc --all)
104
- emmake make clangInterpreter clangStaticAnalyzerCore -j $( nproc --all)
105
- emmake make lldWasm -j $( nproc --all)
103
+ EMCC_CFLAGS= " -Oz " emmake make libclang -j $( nproc --all)
104
+ EMCC_CFLAGS= " -Oz " emmake make clangInterpreter clangStaticAnalyzerCore -j $( nproc --all)
105
+ EMCC_CFLAGS= " -Oz " emmake make lldWasm -j $( nproc --all)
106
106
```
107
107
108
108
or executing
@@ -131,7 +131,9 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release `
131
131
-DCLANG_BUILD_TOOLS=OFF `
132
132
-G Ninja `
133
133
..\llvm
134
+ $env:EMCC_CFLAGS="-Oz"
134
135
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
136
+ $env:EMCC_CFLAGS=""
135
137
```
136
138
137
139
on Windows. Once this finishes building we need to take note of where we built our llvm build. This can be done by executing the following on Linux and osx
Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ and osx
120
120
-DCLANG_BUILD_TOOLS=OFF \
121
121
-DLLVM_NATIVE_TOOL_DIR=$NATIVE_DIR \
122
122
../llvm
123
- emmake make libclang -j $( nproc --all)
124
- emmake make clangInterpreter clangStaticAnalyzerCore -j $( nproc --all)
125
- emmake make lldWasm -j $( nproc --all)
123
+ EMCC_CFLAGS= " -Oz " emmake make libclang -j $( nproc --all)
124
+ EMCC_CFLAGS= " -Oz " emmake make clangInterpreter clangStaticAnalyzerCore -j $( nproc --all)
125
+ EMCC_CFLAGS= " -Oz " emmake make lldWasm -j $( nproc --all)
126
126
127
127
or executing
128
128
@@ -151,7 +151,9 @@ or executing
151
151
- DCLANG_BUILD_TOOLS= OFF `
152
152
- G Ninja `
153
153
..\llvm
154
+ $env: EMCC_CFLAGS = " -Oz"
154
155
emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
156
+ $env: EMCC_CFLAGS = " "
155
157
156
158
on Windows. Once this finishes building we need to take note of where we built our llvm build.
157
159
This can be done by executing the following on Linux and osx
You can’t perform that action at this time.
0 commit comments