[PATCH] D64587: Use clang driver for libfuzzer tests on Windows

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 16:21:27 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL365841: Use clang driver for libfuzzer tests on Windows (authored by rnk, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D64587?vs=209314&id=209371#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64587/new/

https://reviews.llvm.org/D64587

Files:
  compiler-rt/trunk/test/fuzzer/lit.cfg.py
  compiler-rt/trunk/test/fuzzer/windows-opt-ref.test


Index: compiler-rt/trunk/test/fuzzer/windows-opt-ref.test
===================================================================
--- compiler-rt/trunk/test/fuzzer/windows-opt-ref.test
+++ compiler-rt/trunk/test/fuzzer/windows-opt-ref.test
@@ -1,7 +1,7 @@
 REQUIRES: windows
 // Verify that the linker eliminating unreferenced functions (/OPT:REF) does not
 // strip sancov module constructor.
-RUN: %cpp_compiler %S/SimpleCmpTest.cpp -o %t-SimpleCmpTest /link /OPT:REF
+RUN: %cpp_compiler %S/SimpleCmpTest.cpp -o %t-SimpleCmpTest -Wl,-OPT:REF
 
 RUN: not %run %t-SimpleCmpTest -seed=1 -runs=100000000 2>&1 | FileCheck %s
 
Index: compiler-rt/trunk/test/fuzzer/lit.cfg.py
===================================================================
--- compiler-rt/trunk/test/fuzzer/lit.cfg.py
+++ compiler-rt/trunk/test/fuzzer/lit.cfg.py
@@ -66,10 +66,8 @@
   compiler_cmd = config.clang
   extra_cmd = config.target_flags
 
-  if is_cpp and 'windows-msvc' in config.target_triple:
-    std_cmd = '--driver-mode=cl'
-  elif is_cpp:
-    std_cmd = '--driver-mode=g++ -std=c++11'
+  if is_cpp:
+    std_cmd = '--driver-mode=g++'
   else:
     std_cmd = ''
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64587.209371.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/3b7dca8c/attachment.bin>


More information about the llvm-commits mailing list