File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -373,3 +373,17 @@ win_toolchain("stage2_win") {
373
373
" //:lld($host_toolchain )" ,
374
374
]
375
375
}
376
+
377
+ win_toolchain (" stage2_win_x86" ) {
378
+ toolchain_args = {
379
+ current_os = host_os
380
+ current_cpu = " x86"
381
+
382
+ clang_base_path = root_build_dir
383
+ use_goma = false
384
+ }
385
+ deps = [
386
+ " //:clang($host_toolchain )" ,
387
+ " //:lld($host_toolchain )" ,
388
+ ]
389
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import("//llvm/utils/gn/build/toolchain/compiler.gni")
7
7
# toolchains and then lipo them together for the final output.
8
8
if (current_os == " win" ) {
9
9
supported_toolchains = [ " //llvm/utils/gn/build/toolchain:stage2_win" ]
10
+ supported_toolchains += [ " //llvm/utils/gn/build/toolchain:stage2_win_x86" ]
10
11
} else {
11
12
supported_toolchains = [ " //llvm/utils/gn/build/toolchain:stage2_unix" ]
12
13
}
Original file line number Diff line number Diff line change 1
1
if (current_cpu == " x86" ) {
2
2
if (current_os == " linux" ) {
3
3
llvm_current_triple = " i386-unknown-linux-gnu"
4
+ } else if (current_os == " win" ) {
5
+ llvm_current_triple = " i386-pc-windows-msvc"
4
6
}
5
7
} else if (current_cpu == " x64" ) {
6
8
if (current_os == " freebsd" ) {
You can’t perform that action at this time.
0 commit comments