[llvm] 4c1bf9e - [gn build] port e9f9ec837d447857
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 08:40:44 PST 2021
Author: Nico Weber
Date: 2021-03-04T11:40:12-05:00
New Revision: 4c1bf9e0eeea9b0ebffed0fb9353586161a30e8e
URL: https://github.com/llvm/llvm-project/commit/4c1bf9e0eeea9b0ebffed0fb9353586161a30e8e
DIFF: https://github.com/llvm/llvm-project/commit/4c1bf9e0eeea9b0ebffed0fb9353586161a30e8e.diff
LOG: [gn build] port e9f9ec837d447857
Added:
Modified:
llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
index 36f397aa5381..d420c1c0158c 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
@@ -279,12 +279,16 @@ write_cmake_config("config") {
}
if (current_os == "mac") {
- values += [ "LTDL_SHLIB_EXT=.dylib" ]
+ shlib_ext = ".dylib"
} else if (current_os == "win") {
- values += [ "LTDL_SHLIB_EXT=.dll" ]
+ shlib_ext = ".dll"
} else {
- values += [ "LTDL_SHLIB_EXT=.so" ]
+ shlib_ext = ".so"
}
+ values += [
+ "LLVM_PLUGIN_EXT=$shlib_ext",
+ "LTDL_SHLIB_EXT=$shlib_ext",
+ ]
if (llvm_enable_libedit) {
values += [ "HAVE_LIBEDIT=1" ]
More information about the llvm-commits
mailing list