summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-01-27 18:41:40 +0000
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-01-27 18:41:40 +0000
commit1dc4e01cbfbdc612203a98b6d2a6ffe37bbd3c90 (patch)
tree71bb277810dfec97bf2eaa962b27429d357c7443 /llvm/examples
parentc9d32e20d5e132bd2d0d986e09e7c338c6bebeb1 (diff)
downloadbcm5719-llvm-1dc4e01cbfbdc612203a98b6d2a6ffe37bbd3c90.tar.gz
bcm5719-llvm-1dc4e01cbfbdc612203a98b6d2a6ffe37bbd3c90.zip
Fix some warnings on MSVC
Differential Revision: https://reviews.llvm.org/D56329 llvm-svn: 352322
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
index e4f275d01d4..563b8cc848f 100644
--- a/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
+++ b/llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt
@@ -11,3 +11,8 @@ if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
-Wno-unused-private-field
)
endif()
+
+if(MSVC)
+ # ignore "warning LNK4199: /DELAYLOAD:shell32.dll ignored; no imports found from shell32.dll"
+ target_link_libraries(Kaleidoscope-Ch2 PRIVATE "-ignore:4199")
+endif()
OpenPOWER on IntegriCloud