[llvm-bugs] [Bug 33205] New: [clang-cl] clang-cl does not honor -Xclang -nobuiltininc
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 29 06:21:26 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33205
Bug ID: 33205
Summary: [clang-cl] clang-cl does not honor -Xclang
-nobuiltininc
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: Alberto.Magni at microsoft.com
CC: llvm-bugs at lists.llvm.org
This the output of:
clang-cl.exe /c -v -Xclang -nobuiltininc x.c
(x.c contains a dummy function)
clang version 5.0.0 (https://github.com/llvm-mirror/clang.git
59a0553fd263be69fb099368fc021f38861a23d6)
(https://github.com/llvm-mirror/llvm.git
b762e5bdbc6609523d0fd29cdc3dcba3b1789fc0)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\build\opensource\llvm\RelWithDebInfo\bin
"D:\\build\\opensource\\llvm\\RelWithDebInfo\\bin\\clang-cl.exe" -cc1 -triple
x86_64-pc-windows-msvc19.10.25019 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -main-file-name x.c -mrelocation-
model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_MT
-flto-visibility-public-std --dependent-lib=libcmt --dependent
-lib=oldnames -stack-protector 2 -fms-volatile -fdiagnostics-format msvc
-momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file "C:\\Users\\almagni\\src\\alberto_tests\\x.gcno" -r
esource-dir "D:\\build\\opensource\\llvm\\RelWithDebInfo\\lib\\clang\\5.0.0"
-internal-isystem
"D:\\build\\opensource\\llvm\\RelWithDebInfo\\lib\\clang\\5.0.0\\include"
-internal-isystem "C:\\Program Files (x86)\\M
icrosoft Visual
Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.10.25017\\include"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.15063.0\\ucrt" -internal-isystem "C:\\Program Files
(x86)
\\Windows Kits\\10\\include\\10.0.15063.0\\shared" -internal-isystem
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.15063.0\\um"
-internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.
0.15063.0\\winrt" -fdebug-compilation-dir
"C:\\Users\\almagni\\src\\alberto_tests" -ferror-limit 19 -fmessage-length 214
-fms-extensions -fms-compatibility -fms-compatibility-version=19.10.25019
-fdelayed-template-
parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-nobuiltininc -o x.obj -x c x.c
clang -cc1 version 5.0.0 based upon LLVM 5.0.0svn default target
x86_64-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
D:\build\opensource\llvm\RelWithDebInfo\lib\clang\5.0.0\include
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt
End of search list.
Given the option -nobuiltininc, the directory
D:\build\opensource\llvm\RelWithDebInfo\lib\clang\5.0.0\include
should not appear in the include search path.
While this is the output of
clang.exe -c -v -nobuiltininc x.c
clang version 5.0.0 (https://github.com/llvm-mirror/clang.git
59a0553fd263be69fb099368fc021f38861a23d6)
(https://github.com/llvm-mirror/llvm.git
b762e5bdbc6609523d0fd29cdc3dcba3b1789fc0)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\build\opensource\llvm\RelWithDebInfo\bin
"D:\\build\\opensource\\llvm\\RelWithDebInfo\\bin\\clang.exe" -cc1 -triple
x86_64-pc-windows-msvc19.10.25019 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -main-file-name x.c
-mrelocation-mod
el pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file
"C:\\Users\\almagni\\src\\alberto_tests\\x.gcno" -nobuiltininc -resource-dir
"D:\\build\\opensource\\llvm\\RelWithDebInfo\\lib\\clang\\5.0.0"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\20
17\\Enterprise\\VC\\Tools\\MSVC\\14.10.25017\\include" -internal-isystem
"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.15063.0\\ucrt"
-internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\includ
e\\10.0.15063.0\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\include\\10.0.15063.0\\um" -internal-isystem "C:\\Program Files
(x86)\\Windows Kits\\10\\include\\10.0.15063.0\\winrt" -fdebug-
compilation-dir "C:\\Users\\almagni\\src\\alberto_tests" -ferror-limit 19
-fmessage-length 214 -fms-extensions -fms-compatibility
-fms-compatibility-version=19.10.25019 -fdelayed-template-parsing
-fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o x.o -x c x.c
clang -cc1 version 5.0.0 based upon LLVM 5.0.0svn default target
x86_64-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt
End of search list.
The directory
D:\build\opensource\llvm\RelWithDebInfo\lib\clang\5.0.0\include
is correctly absent from the search path.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170529/6d45524d/attachment.html>
More information about the llvm-bugs
mailing list