Skip to content

Commit 710f262

Browse files
committed
move rust feature to cargo feature
1 parent 91ba94a commit 710f262

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/compiletests/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ fn build_deps(deps_target_dir: &Path, codegen_backend_path: &Path, target: &str)
191191
"compiletests-deps-helper",
192192
"-Zbuild-std=core,alloc",
193193
"-Zbuild-std-features=compiler-builtins-mem",
194+
// TODO(RDambrosio016): Remove this once we can get meaningful error messages in panic to work.
195+
// for now we enable it to remove some useless indirect calls in the ptx.
196+
"-Zbuild-std-features=panic_immediate_abort".into(),
194197
&*format!("--target={}", target),
195198
])
196199
.arg("--target-dir")
@@ -349,9 +352,6 @@ fn rust_flags(codegen_backend_path: &Path) -> String {
349352
"-Zcrate-attr=register_tool(nvvm_internal)".into(),
350353
"-Zcrate-attr=no_std".into(),
351354
"-Zsaturating_float_casts=false".into(),
352-
// TODO(RDambrosio016): Remove this once we can get meaningful error messages in panic to work.
353-
// for now we enable it to remove some useless indirect calls in the ptx.
354-
"-Zbuild-std-features=panic_immediate_abort".into(),
355355
// NOTE(LegNeato) flags copied from `cuda-builder` are all above this line.
356356
// NOTE(LegNeato) flags copied from `rust-gpu`'s compiletests are all below this
357357
// line.

0 commit comments

Comments
 (0)