matricks / bam

Bam is a fast and flexible build system. Bam uses Lua to describe the build process. It's takes its inspiration for the script files from scons. While scons focuses on being 100% correct when building, bam makes a few sacrifices to acquire fast full and incremental build times.
http://matricks.github.com/bam
Other
146 stars 47 forks source link

Tests failure with some values for CC #102

Open hasufell opened 8 years ago

hasufell commented 8 years ago

When CC is set to x86_64-pc-linux-gnu-cc, the tests fail, if it's set to x86_64-pc-linux-gnu-gcc or even clang, the tests succeed.

Note that x86_64-pc-linux-gnu-cc basically is a symlink to x86_64-pc-linux-gnu-gcc on my system, so this doesn't make a lot of sense. Maybe the tests try to mangle the CC value somehow?

build log: https://gist.github.com/hasufell/55c8c90178ebcb23886a394bd01fcf6e

hasufell commented 8 years ago

Yes, the problem is

https://github.com/matricks/bam/blob/27b28f0956a78844e73aa94fee7d0187c9b68bbd/src/tools.lua#L7

hasufell commented 8 years ago

Also see http://nadeausoftware.com/articles/2012/10/c_c_tip_how_detect_compiler_name_and_version_using_compiler_predefined_macros how to properly detect compiler type.