Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37682212
en ru br
ALT Linux repos
S:117.0.5938.132-alt1
3.0: 0.9.12-alt7

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


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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin