summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2025-01-03 13:53:55 +0000
committerJames Le Cuirot <chewi@gentoo.org>2025-01-03 15:24:53 +0000
commit4481d9d842856499e8fef19430f8fe835e626c48 (patch)
tree074f154092170884f0225c05abde046ce9a15d6a /llvm-core/clang
parentsci-electronics/gazebo: add github upstream metadata (diff)
downloadgentoo-4481d9d842856499e8fef19430f8fe835e626c48.tar.gz
gentoo-4481d9d842856499e8fef19430f8fe835e626c48.tar.bz2
gentoo-4481d9d842856499e8fef19430f8fe835e626c48.zip
llvm-core/clang: Set CLANG_CONFIG_FILE_USER_DIR for per-user config
This is a better way to pass dynamic flags like --sysroot when cross-compiling than sticking them directly in variables like CC. The HOME directory is overridden by Portage, so real user config won't interfere with package builds. For now, the necessary config can be set up in pre_src_unpack, but perhaps we could come up with something more formal later. Closes: https://github.com/gentoo/gentoo/pull/39960 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'llvm-core/clang')
-rw-r--r--llvm-core/clang/clang-19.1.6.ebuild3
-rw-r--r--llvm-core/clang/clang-20.0.0.9999.ebuild3
-rw-r--r--llvm-core/clang/clang-20.0.0_pre20241227.ebuild3
3 files changed, 6 insertions, 3 deletions
diff --git a/llvm-core/clang/clang-19.1.6.ebuild b/llvm-core/clang/clang-19.1.6.ebuild
index 3d00c48770d8..d21a4ba71610 100644
--- a/llvm-core/clang/clang-19.1.6.ebuild
+++ b/llvm-core/clang/clang-19.1.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -260,6 +260,7 @@ multilib_src_configure() {
-DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/share/man"
-DLLVM_ROOT="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}"
-DCLANG_CONFIG_FILE_SYSTEM_DIR="${EPREFIX}/etc/clang"
+ -DCLANG_CONFIG_FILE_USER_DIR="~/.config/clang"
# relative to bindir
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${LLVM_MAJOR}"
diff --git a/llvm-core/clang/clang-20.0.0.9999.ebuild b/llvm-core/clang/clang-20.0.0.9999.ebuild
index ffc1eb222985..67e6515db8b5 100644
--- a/llvm-core/clang/clang-20.0.0.9999.ebuild
+++ b/llvm-core/clang/clang-20.0.0.9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -259,6 +259,7 @@ multilib_src_configure() {
-DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/share/man"
-DLLVM_ROOT="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}"
-DCLANG_CONFIG_FILE_SYSTEM_DIR="${EPREFIX}/etc/clang"
+ -DCLANG_CONFIG_FILE_USER_DIR="~/.config/clang"
# relative to bindir
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${LLVM_MAJOR}"
diff --git a/llvm-core/clang/clang-20.0.0_pre20241227.ebuild b/llvm-core/clang/clang-20.0.0_pre20241227.ebuild
index ffc1eb222985..67e6515db8b5 100644
--- a/llvm-core/clang/clang-20.0.0_pre20241227.ebuild
+++ b/llvm-core/clang/clang-20.0.0_pre20241227.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -259,6 +259,7 @@ multilib_src_configure() {
-DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}/share/man"
-DLLVM_ROOT="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}"
-DCLANG_CONFIG_FILE_SYSTEM_DIR="${EPREFIX}/etc/clang"
+ -DCLANG_CONFIG_FILE_USER_DIR="~/.config/clang"
# relative to bindir
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${LLVM_MAJOR}"