Skip to content

Commit

Permalink
compiletest: Remove unused llvm-cxxflags option
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Jan 27, 2020
1 parent d857f6f commit 9a154a9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
7 changes: 1 addition & 6 deletions src/bootstrap/test.rs
Expand Up @@ -1149,17 +1149,14 @@ impl Step for Compiletest {
// requires that a C++ compiler was configured which isn't always the case.
if !builder.config.dry_run && suite == "run-make-fulldeps" {
let llvm_components = output(Command::new(&llvm_config).arg("--components"));
let llvm_cxxflags = output(Command::new(&llvm_config).arg("--cxxflags"));
cmd.arg("--cc")
.arg(builder.cc(target))
.arg("--cxx")
.arg(builder.cxx(target).unwrap())
.arg("--cflags")
.arg(builder.cflags(target, GitRepo::Rustc).join(" "))
.arg("--llvm-components")
.arg(llvm_components.trim())
.arg("--llvm-cxxflags")
.arg(llvm_cxxflags.trim());
.arg(llvm_components.trim());
if let Some(ar) = builder.ar(target) {
cmd.arg("--ar").arg(ar);
}
Expand Down Expand Up @@ -1197,8 +1194,6 @@ impl Step for Compiletest {
.arg("--cflags")
.arg("")
.arg("--llvm-components")
.arg("")
.arg("--llvm-cxxflags")
.arg("");
}

Expand Down
1 change: 0 additions & 1 deletion src/tools/compiletest/src/common.rs
Expand Up @@ -319,7 +319,6 @@ pub struct Config {
pub ar: String,
pub linker: Option<String>,
pub llvm_components: String,
pub llvm_cxxflags: String,

/// Path to a NodeJS executable. Used for JS doctests, emscripten and WASM tests
pub nodejs: Option<String>,
Expand Down
1 change: 0 additions & 1 deletion src/tools/compiletest/src/header/tests.rs
Expand Up @@ -45,7 +45,6 @@ fn config() -> Config {
"--cxx=c++",
"--cflags=",
"--llvm-components=",
"--llvm-cxxflags=",
"--android-cross-path=",
"--target=x86_64-unknown-linux-gnu",
];
Expand Down
2 changes: 0 additions & 2 deletions src/tools/compiletest/src/main.rs
Expand Up @@ -116,7 +116,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
.optopt("", "ar", "path to an archiver", "PATH")
.optopt("", "linker", "path to a linker", "PATH")
.reqopt("", "llvm-components", "list of LLVM components built in", "LIST")
.reqopt("", "llvm-cxxflags", "C++ flags for LLVM", "FLAGS")
.optopt("", "llvm-bin-dir", "Path to LLVM's `bin` directory", "PATH")
.optopt("", "nodejs", "the name of nodejs", "PATH")
.optopt("", "remote-test-client", "path to the remote test client", "PATH")
Expand Down Expand Up @@ -240,7 +239,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
ar: matches.opt_str("ar").unwrap_or("ar".into()),
linker: matches.opt_str("linker"),
llvm_components: matches.opt_str("llvm-components").unwrap(),
llvm_cxxflags: matches.opt_str("llvm-cxxflags").unwrap(),
nodejs: matches.opt_str("nodejs"),
}
}
Expand Down
1 change: 0 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Expand Up @@ -2651,7 +2651,6 @@ impl<'test> TestCx<'test> {
.env("HOST_RPATH_DIR", cwd.join(&self.config.compile_lib_path))
.env("TARGET_RPATH_DIR", cwd.join(&self.config.run_lib_path))
.env("LLVM_COMPONENTS", &self.config.llvm_components)
.env("LLVM_CXXFLAGS", &self.config.llvm_cxxflags)
// We for sure don't want these tests to run in parallel, so make
// sure they don't have access to these vars if we run via `make`
// at the top level
Expand Down

0 comments on commit 9a154a9

Please sign in to comment.