From afc45ff06fac83209c631f2573789fde48b8b397 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 15 Sep 2021 08:01:02 -0400 Subject: [PATCH] [gn build] (manually) port 2c42a73d6c39 --- llvm/utils/gn/secondary/llvm/test/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn index 1cee926fea54..0adb1292557d 100644 --- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn +++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn @@ -9,6 +9,7 @@ import("//llvm/utils/gn/build/libs/zlib/enable.gni") import("//llvm/utils/gn/build/mac_sdk.gni") import("//llvm/utils/gn/build/write_cmake_config.gni") import("//llvm/utils/llvm-lit/lit_path_function.gni") +import("//llvm/version.gni") import("llvm_lit_site_cfg_files.gni") template("write_lit_config") { @@ -66,6 +67,8 @@ write_lit_config("lit_site_cfg") { "LLVM_NATIVE_ARCH=$native_target", "LLVM_USE_INTEL_JITEVENTS=0", "LLVM_USE_SANITIZER=", + "LLVM_VERSION_MAJOR=$llvm_version_major", + "LLVM_VERSION_SUFFIX=git", "Python3_EXECUTABLE=$python_path", "TARGETS_TO_BUILD=$llvm_targets_to_build_string", "TARGET_TRIPLE=$llvm_target_triple",