File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ jobs:
273273 cd native_build
274274 cmake -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release -G Ninja ../llvm/
275275 cmake --build . --target llvm-tblgen clang-tblgen --parallel $(nproc --all)
276- find.exe .
277276 $env:PWD_DIR= $PWD.Path
278277 $env:NATIVE_DIR="$env:PWD_DIR/bin/"
279278 cd ..
Original file line number Diff line number Diff line change @@ -108,6 +108,13 @@ emmake make lldWasm -j $(nproc --all)
108108or executing
109109
110110``` powershell
111+ mkdir native_build
112+ cd native_build
113+ cmake -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release -G Ninja ../llvm/
114+ cmake --build . --target llvm-tblgen clang-tblgen --parallel $(nproc --all)
115+ $env:PWD_DIR= $PWD.Path
116+ $env:NATIVE_DIR="$env:PWD_DIR/bin/"
117+ cd ..
111118mkdir build
112119cd build
113120emcmake cmake -DCMAKE_BUILD_TYPE=Release `
@@ -129,6 +136,7 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release `
129136 -DLLVM_BUILD_TOOLS=OFF `
130137 -DLLVM_ENABLE_LIBPFM=OFF `
131138 -DCLANG_BUILD_TOOLS=OFF `
139+ -DLLVM_NATIVE_TOOL_DIR="$env:NATIVE_DIR" `
132140 -G Ninja `
133141 ..\llvm
134142emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ or executing
128128
129129.. code :: powershell
130130
131+ mkdir native_build
132+ cd native_build
133+ cmake - DLLVM_ENABLE_PROJECTS= clang - DLLVM_TARGETS_TO_BUILD= host - DCMAKE_BUILD_TYPE= Release - G Ninja ../ llvm/
134+ cmake -- build . -- target llvm- tblgen clang- tblgen -- parallel $ (nproc -- all)
135+ $env: PWD_DIR = $PWD.Path
136+ $env: NATIVE_DIR = " $env: PWD_DIR /bin/"
137+ cd ..
131138 mkdir build
132139 cd build
133140 emcmake cmake - DCMAKE_BUILD_TYPE= Release `
@@ -149,6 +156,7 @@ or executing
149156 - DLLVM_BUILD_TOOLS= OFF `
150157 - DLLVM_ENABLE_LIBPFM= OFF `
151158 - DCLANG_BUILD_TOOLS= OFF `
159+ - DLLVM_NATIVE_TOOL_DIR= " $env: NATIVE_DIR " `
152160 - G Ninja `
153161 ..\llvm
154162 emmake ninja libclang clangInterpreter clangStaticAnalyzerCore lldWasm
You can’t perform that action at this time.
0 commit comments