* [PATCH 09/10] cgcc: use $ccom to set $multiarch_dir if not specified
@ 2014-08-04 18:40 Ramsay Jones
0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2014-08-04 18:40 UTC (permalink / raw)
To: Christopher Li; +Cc: Sparse Mailing-list
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
cgcc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cgcc b/cgcc
index f330116..d7daa99 100755
--- a/cgcc
+++ b/cgcc
@@ -77,6 +77,8 @@ if ($do_check) {
chomp($gcc_base_dir); # possibly remove '\n' from compiler
$check .= " -gcc-base-dir " . $gcc_base_dir if $gcc_base_dir;
+ $multiarch_dir = qx($ccom -print-multiarch) if ! defined $multiarch_dir;
+ chomp($multiarch_dir); # possibly remove '\n' from compiler
$check .= " -multiarch-dir " . $multiarch_dir if $multiarch_dir;
print "$check\n" if $verbose;
--
2.0.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-04 18:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04 18:40 [PATCH 09/10] cgcc: use $ccom to set $multiarch_dir if not specified Ramsay Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).