diff options
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index ad32bc7d1b..e6f5b24cce 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1628,7 +1628,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (const char *pwd = ::getenv("PWD")) { // GCC also verifies that stat(pwd) and stat(".") have the same inode // number. Not doing those because stats are slow, but we could. - if (pwd[0] == '/') { + if (llvm::sys::path::is_absolute(pwd)) { std::string CompDir = pwd; CmdArgs.push_back("-fdebug-compilation-dir"); CmdArgs.push_back(Args.MakeArgString(CompDir)); |