But surely you won't be able to set DEFAULT_SYSROOT in the graphical/curses 
cmake cache editor (ccmake) because it isn't defined in CMakeLists.txt with 
help text etc.

It essentially makes it a hidden configure option.

-----Original Message-----
From: Rafael Espíndola [mailto:[email protected]] 
Sent: 07 March 2012 15:04
To: James Molloy
Cc: Sebastian Pop; [email protected]; Chandler Carruth; Joerg Sonnenberger
Subject: Re: Use GCC_INSTALL_PREFIX to initialize SysRoot

> Is that really needed? Looks like it should work as is. I will give it a try.

This part seems to be working, but I found other problems. There are
more users of OPT__sysroot_EQ. You probably need to define a
getSysRoot function. You also should string the final / from both the
command line and configure option or from none.

I tried building with

cmake ../llvm/ -DDEFAULT_SYSROOT=/Developer/SDKs/MacOSX10.7.sdk/

and config.h has

#define DEFAULT_SYSROOT "/Developer/SDKs/MacOSX10.7.sdk/"

but that sysroot is not being prepended to the header search path for example.

Cheers,
Rafael





_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to