You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
601
601
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
602
602
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
603
-
opt local-rebuild 0 "use an installed rustc matching the current version, for rebuilds"
603
+
opt local-rebuild 0 "assume local-rust matches the current version, for rebuilds; implies local-rust, and is implied if local-rust already matches the current version"
604
604
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
605
605
opt rpath 1 "build rpaths into rustc itself"
606
606
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
@@ -612,6 +612,7 @@ opt rustbuild 0 "use the rust and cargo based build system"
612
612
opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit"
613
613
opt codegen-tests 1 "run the src/test/codegen tests"
614
614
opt option-checking 1 "complain about unrecognized options in this configure script"
615
+
opt ninja 0 "build LLVM using the Ninja generator (for MSVC, requires building in the correct environment)"
615
616
616
617
# Optimization and debugging options. These may be overridden by the release channel, etc.
617
618
opt_nosave optimize 1 "build optimized rust code"
@@ -785,6 +786,17 @@ probe CFG_BISON bison
785
786
probe CFG_GDB gdb
786
787
probe CFG_LLDB lldb
787
788
789
+
if [ -n"$CFG_ENABLE_NINJA" ]
790
+
then
791
+
probe CFG_NINJA ninja
792
+
if [ -z"$CFG_NINJA" ]
793
+
then
794
+
# On Debian and Fedora, the `ninja` binary is an IRC bot, so the build tool was
795
+
# renamed. Handle this case.
796
+
probe CFG_NINJA ninja-build
797
+
fi
798
+
fi
799
+
788
800
# For building LLVM
789
801
probe_need CFG_CMAKE cmake
790
802
@@ -1534,7 +1546,10 @@ do
1534
1546
fi
1535
1547
1536
1548
# We need the generator later on for compiler-rt even if LLVM's not built
0 commit comments