[compiler-rt] 4579843 - [compiler-rt] [test] Mark a windows specific test as requiring an MSVC like environment

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 14:12:56 PDT 2023


Author: Martin Storsjö
Date: 2023-07-12T00:11:47+03:00
New Revision: 4579843d59d617d13b5385c63aa67efeb8a9e788

URL: https://github.com/llvm/llvm-project/commit/4579843d59d617d13b5385c63aa67efeb8a9e788
DIFF: https://github.com/llvm/llvm-project/commit/4579843d59d617d13b5385c63aa67efeb8a9e788.diff

LOG: [compiler-rt] [test] Mark a windows specific test as requiring an MSVC like environment

This test relies on MSVC style linking details, such as -Wl,-dll
(which could be expressed with just "-shared", which would work
with MinGW too) and an implicitly created import library named
"<basename>.lib" (which isn't created when linking in MinGW mode).

This fixes running the compiler-rt tests in MinGW environments.

Added: 
    

Modified: 
    compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c b/compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c
index 542663fcd20931..bd1eb07077f24d 100644
--- a/compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c
+++ b/compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c
@@ -1,4 +1,4 @@
-// REQUIRES: windows
+// REQUIRES: target={{.*windows-msvc.*}}
 
 // Test the online merging mode (%m) along with continuous mode (%c).
 //


        


More information about the llvm-commits mailing list