diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-01-12 11:56:47 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-12 11:56:47 +0000 |
| commit | 606feebb2eca1b5449ca693aee1795f0e7e000bb (patch) | |
| tree | b48d2b0521acee2104d84dde983b7a44cc4ddeb2 | |
| parent | 537b319860bca542fe924dcaefe3ed5b50429ae0 (diff) | |
| download | bcm5719-llvm-606feebb2eca1b5449ca693aee1795f0e7e000bb.tar.gz bcm5719-llvm-606feebb2eca1b5449ca693aee1795f0e7e000bb.zip | |
gn build: Unbreak Windows build
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
llvm-svn: 351004
| -rw-r--r-- | llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn | 4 | ||||
| -rw-r--r-- | llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn index dfd33292b71..3cc62d3888f 100644 --- a/llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/tools/lto/BUILD.gn @@ -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", diff --git a/llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn index e6261f61d4e..eed7d734eb7 100644 --- a/llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn @@ -24,6 +24,6 @@ unittest("MCJITTests") { ] if (host_os == "win") { - sources += [ "MCJITTest.def" ] + sources += [ "MCJITTests.def" ] } } |

