diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-02-16 18:12:35 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-02-25 23:00:59 +0100 |
commit | 95ac0b0352814393c1413a953f3d409d25a86059 (patch) | |
tree | 4f79555cce986da012a7cecac277c00da08c99fb | |
parent | ec4bac31cf9f847feed879a191bc1f8fbd9577ee (diff) | |
download | sparse-95ac0b0352814393c1413a953f3d409d25a86059.tar.gz |
cgcc: -dumpmachine should be fetched with '$ccom'
The variable '$ccom' is used to hold the compiler command only
while '$cc' hold the compiler and it's options.
So, use '$ccom' to fetch '-dumpmachine' instead of '$cc'.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-x | cgcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -322,7 +322,7 @@ sub add_specs { &define_size_t ("long unsigned int") . ' -D__SIZEOF_POINTER__=' . ($m64 ? '8' : '4')); } elsif ($spec eq 'arm') { - chomp (my $gccmachine = `$cc -dumpmachine`); + chomp (my $gccmachine = `$ccom -dumpmachine`); my $cppsymbols = ' -m32'; if ($gccmachine eq 'arm-linux-gnueabihf') { |