]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
clang: consolidate LLVM_APPEND_VC_REV=OFF
authorRoss Burton <ross.burton@arm.com>
Wed, 8 Oct 2025 14:26:20 +0000 (15:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Oct 2025 09:27:02 +0000 (10:27 +0100)
Whilst the change to add TMPDIR to GIT_CEILING_DIRECTORIES should stop
LLVM from embedding git information into the recipes, also disable this
behaviour explicitly.

We do this because it's not just the sha of the source tree but also
the full URL of the repository, which would be an information leak if
an internal git mirror was being used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/clang_git.bb
meta/recipes-devtools/clang/common-clang.inc
meta/recipes-devtools/clang/openmp_git.bb

index ca539635902fa95d0c4ff32d1c1c5f76a0623dfa..e10c327a2afb168d87931ef4cb08f2b2c055f4e7 100644 (file)
@@ -57,7 +57,6 @@ SOLIBSDEV:mingw32 = ".pyd"
 #CMAKE_VERBOSE = "VERBOSE=1"
 
 EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \
-                  -DLLVM_APPEND_VC_REV=OFF \
                   -DLLVM_ENABLE_PIC=ON \
                   -DCLANG_DEFAULT_PIE_ON_LINUX=ON \
                   -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \
index f7b7a1cf9a031c6486e20785b953547e833af8e3..2e9d3d73f9249f098f3cf7b1d060260e0b61fc0e 100644 (file)
@@ -48,4 +48,8 @@ def get_clang_target_arch(bb, d):
 # install they cause non-deterministic binaries.
 EXTRA_OECMAKE += "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
 
+# Don't embed found git information into the version string as this
+# will include the git server URL.
+EXTRA_OECMAKE += "-DLLVM_APPEND_VC_REV=OFF"
+
 require common.inc
index 2d86718dee6d0e8931cecd50048261b209d88d08..b6b1cc29785ca88fe0aeacd57da0807d90e8ee8c 100644 (file)
@@ -18,7 +18,6 @@ inherit cmake pkgconfig perlnative python3native python3targetconfig
 DEPENDS += "elfutils libffi clang"
 
 EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-                  -DLLVM_APPEND_VC_REV=OFF \
                   -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
                   -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
                   -DOPENMP_STANDALONE_BUILD=ON \