]> granicus.if.org Git - llvm/commitdiff
[benchmark] Fix win32 link on case-sensitive fs
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 30 Jul 2019 20:47:59 +0000 (20:47 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 30 Jul 2019 20:47:59 +0000 (20:47 +0000)
Summary: This fixes cross-builds with MinGW from case-sensitive file-systems (on Linux)

This is a cherry-pick from
https://github.com/google/benchmark/pull/840
https://github.com/google/benchmark/commit/8e48105d465c586068dd8e248fe75a8971c6ba3a

Original patch by: @jschueller (Julien Schueller) !

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367356 91177308-0d34-0410-b5e6-96231b3b80d8

utils/benchmark/README.LLVM
utils/benchmark/src/CMakeLists.txt

index d2aa87e86e796f0b9af10cf62af7d076e705af77..e3668ce5c082ce09b55f3f77a3fbd41612d1cba3 100644 (file)
@@ -25,3 +25,5 @@ Changes:
   and hardcoded a null version
 * https://github.com/google/benchmark/commit/4abdfbb802d1b514703223f5f852ce4a507d32d2
   is applied on top of v1.4.1 to add RISC-V timer support.
+* https://github.com/google/benchmark/commit/8e48105d465c586068dd8e248fe75a8971c6ba3a
+  is applied on top of v1.4.1 to fix cross-build from linux to windows via MinGW.
index 5b3d52270de5dd8ba6ca5611a730e501e5e08efd..0abfe3cfd53c292fdfd8be34c769df50fefd3b08 100644 (file)
@@ -36,7 +36,7 @@ endif()
 
 # We need extra libraries on Windows
 if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
-  target_link_libraries(benchmark Shlwapi)
+  target_link_libraries(benchmark shlwapi)
 endif()
 
 # We need extra libraries on Solaris