about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-12-06 14:16:49 +0000
committerbors <bors@rust-lang.org>2016-12-06 14:16:49 +0000
commit1842efbae45e348f558bc73ed3fc6bbedcbcd565 (patch)
tree1ee16c5fcdc7120d2b48fd101f1946a357ded1b5 /src/test
parent1692c0b587e1d91bb96a99f9f2588d7d2b247e3f (diff)
parent257f643ee327252a4cd6dba25f64ac3768adcb45 (diff)
downloadrust-1842efbae45e348f558bc73ed3fc6bbedcbcd565.tar.gz
rust-1842efbae45e348f558bc73ed3fc6bbedcbcd565.zip
Auto merge of #37994 - upsuper:msvc-link-opt, r=alexcrichton
Don't apply msvc link opts for non-opt build

`/OPT:REF,ICF` sometimes takes lots of time. It makes no sense to apply them when doing debug build. MSVC's linker by default disables these optimizations when `/DEBUG` is specified, unless they are explicitly passed.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-make/codegen-options-parsing/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/codegen-options-parsing/Makefile b/src/test/run-make/codegen-options-parsing/Makefile
index 9543fad8e53..2b8b0712cc7 100644
--- a/src/test/run-make/codegen-options-parsing/Makefile
+++ b/src/test/run-make/codegen-options-parsing/Makefile
@@ -25,7 +25,7 @@ all:
 
 	# Should not link dead code...
 	$(RUSTC) -Z print-link-args dummy.rs 2>&1 | \
-		grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF,ICF'
+		grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF'
 	# ... unless you specifically ask to keep it
 	$(RUSTC) -Z print-link-args -C link-dead-code dummy.rs 2>&1 | \
-		(! grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF,ICF')
+		(! grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF')