SRI-CSL / whole-program-llvm

A toolkit for building whole-program LLVM bitcode files
MIT License
73 stars 11 forks source link

config mystery on shaman #22

Closed ianamason closed 7 years ago

ianamason commented 7 years ago

OK so in musllvm I do

>CC=clang ./configure --target=LLVM --build=LLVM > clang.config.log

and

>WLLVM_CONFIGURE_ONLY=1  CC=wllvm ./configure --target=LLVM --build=LLVM > wllvm.config.log

then I do

>diff clang.config.log wllvm.config.log

and I see

1c1
< checking for C compiler... clang
---
> checking for C compiler... wllvm
13,14c13,14
< checking whether compiler accepts -fexcess-precision=standard... yes
< checking whether compiler accepts -frounding-math... yes
---
> checking whether compiler accepts -fexcess-precision=standard... no
> checking whether compiler accepts -frounding-math... no

and I wonder why?

ianamason commented 7 years ago

better check that they are both sitting atop the same clang.

ianamason commented 7 years ago

yes that was the problem.

iam@shaman:~$ clang --version
clang version 3.8.1 (tags/RELEASE_381/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/llvm-3.8/bin
iam@shaman:~$ wllvm --version
clang version 3.5.2 (branches/release_35 229013) (llvm/branches/release_35 229009)
Target: x86_64-unknown-linux-gnu
Thread model: posix
iam@shaman:~$