coin-or / Cbc.old

This is a mirror of the subversion repository on COIN-OR
https://projects.coin-or.org/Cbc
Other
89 stars 30 forks source link

[Trac #118] configure script detects cl instead of clang #86

Open s-c-e opened 5 years ago

s-c-e commented 5 years ago

image

In a couple of places configure script contains detection code that tries to detect Microsoft's cl compiler by pattern matching cl*.

Unfortunately, a new compiler called clang also matches cl*. The configure script sets COIN_CC_IS_CL_TRUE and COIN_CXX_IS_CL_TRUE to true, which breaks build with clang.

clang is the default compiler on macports (and will probably be a default compiler on Mac very soon).

=====

tkr This ticket should be posted to the ​BuildTools. I will leave it open until I see it reposted there. Thanks!

=====

stefan I ​modified macros in BuildTools/coin.m4 to hopefully not confuse clang with cl anymore. This is in BuildTools/trunk and stable/0.7, and will be in the next release. It usually takes some time to get these changes into releases of all projects.

And I don't have clang installed to test this.

Stefan