How to run lit tests on Mac OSX without gcc?
Thomas Mader via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Wed Aug 30 01:43:32 PDT 2017
On Tuesday, 29 August 2017 at 06:50:15 UTC, Thomas Mader wrote:
> I just checked. CC is set to "clang" correctly and clang is
> callable.
> Within the PATH variable the path
> "/nix/store/2dijjcqwnzf0pj1ii524anz55nxm7pjs-clang-wrapper-4.0.1/bin/" is declared and in this directory the clang binary is found.
The thing is that "getenv(envVar)" returns "(null)" even though
CC is set to "clang" before "./runlit.py -v ." is called.
Very strange.
I also tested getenv in a little C program and built and run that
via Nix but it worked.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char* pCC;
pCC = getenv ("CC");
if (pCC!=NULL)
printf ("The CC is: %s\n",pCC);
return 0;
}
More information about the digitalmars-d-ldc
mailing list