Group :: Networking/WWW
RPM: chromium
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0009-ALT-allow-to-override-clang-through-env-variables.patch
Download
Download
From 7f86bb5e01c1f368e99461e12acfcb67a8250259 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Mon, 27 Aug 2018 14:59:55 +0300
Subject: [PATCH] ALT: allow to override clang through env variables
---
build/toolchain/gcc_toolchain.gni | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index a303d472baf..7a7c68c0713 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -282,20 +282,28 @@ template("gcc_toolchain") {
if (defined(invoker.readelf)) {
readelf = invoker.readelf
} else {
readelf = "readelf"
}
if (defined(invoker.nm)) {
nm = invoker.nm
} else {
nm = "nm"
}
+
+ cc = getenv("CC")
+ cxx = getenv("CXX")
+ ld = getenv("CXX")
+ readelf = getenv("READELF")
+ ar = getenv("AR")
+ nm = getenv("NM")
+
if (defined(invoker.dwp)) {
dwp_switch = " --dwp=\"${invoker.dwp}\""
} else {
dwp_switch = ""
}
if (defined(invoker.shlib_extension)) {
default_shlib_extension = invoker.shlib_extension
} else {
default_shlib_extension = shlib_extension
--
2.25.4