How to run lit tests on Mac OSX without gcc?
Nicholas Wilson via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Sep 3 03:46:23 PDT 2017
On Saturday, 26 August 2017 at 13:45:18 UTC, Thomas Mader wrote:
> I am successfully building ldc 1.3.0 on Mac and running the
> phobos and druntime tests work too but I get the following
> error in the lit tests:
> 1561: $ "/tmp/nix-build-ldc-1.3.0.drv-1/build/bin/ldc2"
> "-cache=/private/tmp/nix-build-ldc-1.3.0.drv-1/build/tests/linking/Output/flag1cache" "-vv" "-run" "/private/tmp/nix-build-ldc-1.3.0.drv-1/tests/linking/ir2obj_caching_flags1.d"
> 1561: # command stderr:
> 1561: Error: failed to locate gcc
> 1561: error: command failed with exit status: 1
> 1561: $ "FileCheck" "--check-prefix=COULD_HIT"
> There is no gcc on this system. Is it possible to get the lit
> tests running without gcc as linker?
> Everything else is built and run with clang.
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>
More information about the digitalmars-d-ldc