]> granicus.if.org Git - llvm/commitdiff
gn build: Unbreak Windows build
authorNico Weber <nicolasweber@gmx.de>
Sat, 12 Jan 2019 11:56:47 +0000 (11:56 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sat, 12 Jan 2019 11:56:47 +0000 (11:56 +0000)
I didn't break all that much during upstreaming, just needs two small fixes:

- fix spelling of MCJITTests.def file
- make libLTO a shared_library to put it in bin/ on Windows where it is in the
  CMake build too

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

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

utils/gn/secondary/llvm/tools/lto/BUILD.gn
utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn

index dfd33292b7146ea457153766efb2f7ec852cdd5a..3cc62d3888f40c94e064f74b28997be01f154e69 100644 (file)
@@ -1,6 +1,6 @@
 import("//llvm/version.gni")
 
-lto_target_type = "loadable_module"
+lto_target_type = "shared_library"
 if (host_os == "linux") {
   # Linux needs -fPIC to build shared libs but they aren't on by default.
   # For now, make libclang a static lib there.
@@ -8,7 +8,7 @@ if (host_os == "linux") {
 }
 
 target(lto_target_type, "lto") {
-  output_name = "libLTO"
+  output_name = "LTO"
   deps = [
     "//llvm/lib/Bitcode/Reader",
     "//llvm/lib/IR",
index e6261f61d4e506ebbf438c8928f3fb955aa408cf..eed7d734eb798ae5573625e38b104fdfe5006962 100644 (file)
@@ -24,6 +24,6 @@ unittest("MCJITTests") {
   ]
 
   if (host_os == "win") {
-    sources += [ "MCJITTest.def" ]
+    sources += [ "MCJITTests.def" ]
   }
 }