How to run lit tests on Mac OSX without gcc?

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Sep 3 07:48:49 PDT 2017


On 3 Sep 2017, at 11:46, Nicholas Wilson via digitalmars-d-ldc wrote:
> ldc has a -gcc flag to override the gcc used for linking, it is hidden 
> which is why you didn't find it.
>
> ldc -gcc=/path/to/clang <rest of args>

The flag does indeed exist. However, it is not intended for regular 
end-users, but rather to help developers when fiddling around with 
auto-detection/cross-compilation setups, etc. In normal use, the 
GCC-style linker driver to use should be auto-detected from the CC 
environment variable. The problem here was just that lit didn't forward 
it to the test processes.

  — David


More information about the digitalmars-d-ldc mailing list