[llvm] 46307f1 - [gn build] Manually port 90ccf21

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 16:14:35 PDT 2024


Author: Arthur Eubanks
Date: 2024-07-11T23:12:51Z
New Revision: 46307f1a84bf832f32938c8ad2dc0605441a5319

URL: https://github.com/llvm/llvm-project/commit/46307f1a84bf832f32938c8ad2dc0605441a5319
DIFF: https://github.com/llvm/llvm-project/commit/46307f1a84bf832f32938c8ad2dc0605441a5319.diff

LOG: [gn build] Manually port 90ccf21

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index 1ec94a419f56c..b1b0dfb9bbddd 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -65,6 +65,8 @@ write_lit_config("lit_site_cfg") {
     "CMAKE_C_COMPILER=cc",
     "ENABLE_BACKTRACES=1",
     "ENABLE_SHARED=0",
+    "LLVM_BUILD_EXAMPLES=0",
+    "LLVM_BYE_LINK_INTO_TOOLS=0",
     "LLVM_EXTERNAL_LIT=",
     "LLVM_HOST_TRIPLE=$llvm_current_triple",
     "LLVM_LIT_TOOLS_DIR=",  # Intentionally empty, matches cmake build.
@@ -111,26 +113,37 @@ write_lit_config("lit_site_cfg") {
   }
 
   if (host_os == "mac") {
-    extra_values += [ "LLVM_PLUGIN_EXT=.dylib" ]
+    extra_values += [
+      "LLVM_PLUGIN_EXT=.dylib",
+      "SHLIBEXT=.dylib",
+    ]
   } else if (host_os == "win") {
-    extra_values += [ "LLVM_PLUGIN_EXT=.dll" ]
+    extra_values += [
+      "LLVM_PLUGIN_EXT=.dll",
+      "SHLIBEXT=.dll",
+    ]
   } else {
-    extra_values += [ "LLVM_PLUGIN_EXT=.so" ]
+    extra_values += [
+      "LLVM_PLUGIN_EXT=.so",
+      "SHLIBEXT=.so",
+    ]
   }
 
   if (host_os == "win") {
     extra_values += [
       # See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn
       "CMAKE_LIBRARY_OUTPUT_DIRECTORY=" + rebase_path("$root_out_dir/bin", dir),
+      "LLVM_ENABLE_PLUGINS=1",
       "LLVM_LIT_ERRC_MESSAGES=no such file or directory;is a directory;" +
           "invalid argument;permission denied",
-      "PERL_EXECUTABLE="
+      "PERL_EXECUTABLE=",
     ]
   } else {
     extra_values += [
       "CMAKE_LIBRARY_OUTPUT_DIRECTORY=" + rebase_path("$root_out_dir/lib", dir),
+      "LLVM_ENABLE_PLUGINS=1",
       "LLVM_LIT_ERRC_MESSAGES=",
-      "PERL_EXECUTABLE=/usr/bin/perl"
+      "PERL_EXECUTABLE=/usr/bin/perl",
     ]
   }
 


        


More information about the llvm-commits mailing list