Mercurial > hg > CbC > CbC_xv6
changeset 393:8c6ae8783321
darwin cbclang path
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 15:57:53 +0900 |
parents | b7235d42396f |
children | 03b57cc656d9 |
files | src/gearsTools/pmake.pl |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gearsTools/pmake.pl Tue Sep 29 23:04:52 2020 +0900 +++ b/src/gearsTools/pmake.pl Mon Dec 14 15:57:53 2020 +0900 @@ -31,7 +31,13 @@ if ($^O =~ /darwin/){ my $armdir = "/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major"; $objcopy = "$armdir/bin/arm-none-eabi-objcopy"; - my $cbcmdir = "/usr/local/Cellar/cbc/llvm10"; + # my $cbcmdir = "/usr/local/Cellar/cbc/llvm10"; + my $cbcmdir = `brew info --formula cbc | grep llvm`; + chop $cbcmdir; + $cbcmdir =~ s/ .*//; + if (! -d $cbcmdir) { + die "cant' find cbclangdir $cbcmdir"; + } $cc = "$cbcmdir/bin/clang"; $asm = $cc; $cflags = qq| --target=armv6-linux-gnueabihf -I$xv6_src_dir/../cbclang/arm -B$armdir/bin/arm-none-eabi-