From 70acf29a45f9160542248d22c594c83059a42d9a Mon Sep 17 00:00:00 2001 From: K4sum1 Date: Tue, 9 Jul 2024 04:49:24 -0500 Subject: [PATCH] Commit custom config.toml --- .gitignore | 1 - config.toml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 config.toml diff --git a/.gitignore b/.gitignore index 485968d9c56ff..1e81f0de3b287 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ Session.vim !/tests/run-make/thumb-none-qemu/example/.cargo ## Configuration -/config.toml /Makefile config.mk config.stamp diff --git a/config.toml b/config.toml new file mode 100644 index 0000000000000..fefe068e42c5c --- /dev/null +++ b/config.toml @@ -0,0 +1,61 @@ +change-id = 118703 + +[llvm] +# They deleted llvm wtf +download-ci-llvm = false +optimize = true +thin-lto = true +link-shared = false +ninja = true +targets = "X86" +link-jobs = 0 +cflags = "-Qunused-arguments -O2 -msse2 /clang:-O3" +cxxflags = "-Qunused-arguments -O2 -msse2 /clang:-O3" +ldflags = "-Wl,-O3 -msse2" +polly = true +clang = true +clang-cl = "C:/Program Files/LLVM/bin/clang-cl.exe" + +[build] +build-stage = 2 +cargo-native-static = false +# When compiling from source, you usually want all tools. +#extended = true +build = "x86_64-pc-windows-msvc" +target = [ + "i686-pc-windows-msvc", + "x86_64-pc-windows-msvc", +] + +docs = false +tools = [ + "src", +] + +[rust] +channel = "dev" +codegen-backends = ["llvm"] +codegen-units = 1 +codegen-units-std = 1 +debug = false +dist-src = false +download-rustc = false +#jemalloc = true +#lto = "thin" +optimize = 3 +parallel-compiler = true +strip = true +optimize-tests = true +thin-lto-import-instr-limit = 100 +validate-mir-opts = 3 +use-lld = "self-contained" + +[dist] +src-tarball = false +compression-profile = "best" +missing-tools = true + +# for creating a downloadable package: python x.py install, then create an archive this +[install] +prefix = "../dist/rust" +sysconfdir = "."