Skip to content

Commit 8c05636

Browse files
authored
fix NO_SPIRV_OPT (#675)
1 parent 8924fe7 commit 8c05636

File tree

1 file changed

+1
-1
lines changed
  • crates/rustc_codegen_spirv/src

1 file changed

+1
-1
lines changed

crates/rustc_codegen_spirv/src/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ fn post_link_single_module(
215215
let spv_binary = if sess.opts.optimize != OptLevel::No
216216
|| (sess.opts.debuginfo == DebugInfo::None && !cg_args.name_variables)
217217
{
218-
if env::var("NO_SPIRV_OPT").is_ok() {
218+
if env::var("NO_SPIRV_OPT").is_err() {
219219
let _timer = sess.timer("link_spirv_opt");
220220
do_spirv_opt(sess, cg_args, spv_binary, out_filename, opt_options)
221221
} else {

0 commit comments

Comments
 (0)