mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
fix NO_SPIRV_OPT (#675)
This commit is contained in:
parent
8924fe7b4c
commit
8c05636f53
@ -215,7 +215,7 @@ fn post_link_single_module(
|
||||
let spv_binary = if sess.opts.optimize != OptLevel::No
|
||||
|| (sess.opts.debuginfo == DebugInfo::None && !cg_args.name_variables)
|
||||
{
|
||||
if env::var("NO_SPIRV_OPT").is_ok() {
|
||||
if env::var("NO_SPIRV_OPT").is_err() {
|
||||
let _timer = sess.timer("link_spirv_opt");
|
||||
do_spirv_opt(sess, cg_args, spv_binary, out_filename, opt_options)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user