]> granicus.if.org Git - clang/commit
Fix a bug that -isysroot is completely ignored on Unix
authorYuka Takahashi <yukatkh@gmail.com>
Wed, 3 May 2017 04:58:39 +0000 (04:58 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Wed, 3 May 2017 04:58:39 +0000 (04:58 +0000)
commit7e51ecfa5685ee4d5b03b459f26f7b5c3ef14f3d
tree72a98531250946cc3482fd8b37dce5f416c7771e
parenta776077f6e80015a8458555bd63bc08147fc37ad
Fix a bug that -isysroot is completely ignored on Unix

-isysroot is the flag which set the system root directory.
This bug report https://bugs.llvm.org//show_bug.cgi?id=11503
shows that -isysroot is not handled at all on Unix, so fixed this bug.

After this diff, I could get this result https://pastebin.com/TeCmn9mj .

Differential Revision: https://reviews.llvm.org/D31495

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInvocation.cpp
test/Driver/sysroot-flags.c