[cfe-commits] Use GCC_INSTALL_PREFIX to initialize SysRoot

James Molloy james.molloy at arm.com
Wed Mar 7 07:33:28 PST 2012


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:rafael.espindola at gmail.com] 
Sent: 07 March 2012 15:04
To: James Molloy
Cc: Sebastian Pop; cfe-commits at cs.uiuc.edu; 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








More information about the cfe-commits mailing list