[cfe-dev] FindExecutable

Jim Crafton jim.crafton at gmail.com
Thu Jan 21 11:24:48 PST 2010


I was just playing with llvm-ld, and noticed that it keeps giving me
errors that it can't find "llc", even though it's in the same
directory. This is running on windows, built with visual studio 2008.
Stepping through the code, I notice that llvm::FindExecutable() is
looking for "llc" not "llc.exe", which means, on windows at least,
that it will *never* find the compiler. Would a simple fix be to just
append a ".exe" to the ExeName parameter if the search fails and
search again? Or is there a better approach?

Cheers

Jim



More information about the cfe-dev mailing list