On Feb 28, 2008, at 12:47, Chris Lattner wrote: > Does anyone know a good way to find a path relative to the > executable? Ideally I'd like to [make] clang search the "../include/ > clang" path from its executable. Is there a good way to do this?
It's ugly on Unix: Perform a PATH search using argv[0]. There may be better platform-specific way to do it, but this is portable. Maybe this should be a lib/System facility. — Gordon _______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
