[compiler-rt] r336926 - [libFuzzer] Use lld-available for gc-sections.test.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 12 11:09:03 PDT 2018


Author: morehouse
Date: Thu Jul 12 11:09:03 2018
New Revision: 336926

URL: http://llvm.org/viewvc/llvm-project?rev=336926&view=rev
Log:
[libFuzzer] Use lld-available for gc-sections.test.

The lld feature is never available for libFuzzer tests, so
gc-sections.test never actually runs.

Modified:
    compiler-rt/trunk/test/fuzzer/gc-sections.test

Modified: compiler-rt/trunk/test/fuzzer/gc-sections.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/gc-sections.test?rev=336926&r1=336925&r2=336926&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/gc-sections.test (original)
+++ compiler-rt/trunk/test/fuzzer/gc-sections.test Thu Jul 12 11:09:03 2018
@@ -1,11 +1,11 @@
-REQUIRES: linux, lld
+REQUIRES: linux, lld-available
 
 No gc-sections:
 RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t
 RUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker | count 1
 
 With gc-sections. Currently, we can't remove unused code.
-RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-gc-sections
+RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -fuse-ld=lld -ffunction-sections -Wl,-gc-sections
 RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
 
 With gc sections, with trace-pc. Unused code is removed.




More information about the llvm-commits mailing list