[llvm] 3b79c82 - [gn] port a65771fce4a2

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 10:23:02 PDT 2024


Author: Nico Weber
Date: 2024-05-31T13:22:57-04:00
New Revision: 3b79c823f6a84632dbc40065cf8ec4b2878a9453

URL: https://github.com/llvm/llvm-project/commit/3b79c823f6a84632dbc40065cf8ec4b2878a9453
DIFF: https://github.com/llvm/llvm-project/commit/3b79c823f6a84632dbc40065cf8ec4b2878a9453.diff

LOG: [gn] port a65771fce4a2

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 11454e68ec91e..f0ff2516c9045 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -7,6 +7,7 @@ import("//llvm/utils/gn/build/libs/pthread/enable.gni")
 import("//llvm/utils/gn/build/libs/zlib/enable.gni")
 import("//llvm/utils/gn/build/write_cmake_config.gni")
 import("//llvm/utils/llvm-lit/lit_path_function.gni")
+import("//llvm/version.gni")
 import("clang_lit_site_cfg_files.gni")
 
 template("write_lit_config") {
@@ -69,6 +70,7 @@ write_lit_config("lit_site_cfg") {
     "LLVM_LIT_TOOLS_DIR=",  # Intentionally empty, matches cmake build.
     "LLVM_TOOL_LLVM_DRIVER_BUILD=0",  # FIXME: Add actual support for this.
     "LLVM_USE_SANITIZER=",
+    "LLVM_VERSION_MAJOR=$llvm_version_major",
     "Python3_EXECUTABLE=$python_path",
     "USE_Z3_SOLVER=",
     "PPC_LINUX_DEFAULT_IEEELONGDOUBLE=0",


        


More information about the llvm-commits mailing list