[compiler-rt] 6094200 - [compiler-rt] [test] [profile] Skip an MSVC-style linker parameter in mingw mode

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 02:06:27 PDT 2023


Author: Martin Storsjö
Date: 2023-04-13T12:03:34+03:00
New Revision: 609420041b1827eeae2f7dbb5ea3a90652112d50

URL: https://github.com/llvm/llvm-project/commit/609420041b1827eeae2f7dbb5ea3a90652112d50
DIFF: https://github.com/llvm/llvm-project/commit/609420041b1827eeae2f7dbb5ea3a90652112d50.diff

LOG: [compiler-rt] [test] [profile] Skip an MSVC-style linker parameter in mingw mode

This parameter isn't essential for the execution of this test, so just
skip it when running tests in mingw mode.

Differential Revision: https://reviews.llvm.org/D148165

Added: 
    

Modified: 
    compiler-rt/test/profile/Windows/coverage-linkage.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/Windows/coverage-linkage.cpp b/compiler-rt/test/profile/Windows/coverage-linkage.cpp
index 648b3fb73a5d4..315c5333aba49 100644
--- a/compiler-rt/test/profile/Windows/coverage-linkage.cpp
+++ b/compiler-rt/test/profile/Windows/coverage-linkage.cpp
@@ -3,7 +3,7 @@
 // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
 // RUN: llvm-profdata show %t.profraw --all-functions | FileCheck %s
 
-// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -Wl,-opt:ref %s -o %t
+// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections %if target={{.*-windows-msvc.*}} %{ -Wl,-opt:ref %} %s -o %t
 // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
 // RUN: llvm-profdata show %t.profraw --all-functions | FileCheck %s
 


        


More information about the llvm-commits mailing list