[cfe-dev] Getting clang header search path
Larry Evans
cppljevans at suddenlink.net
Fri Aug 15 06:20:59 PDT 2014
On 08/14/2014 08:12 PM, Nikola Smiljanic wrote:
> -###
>
>
> On Fri, Aug 15, 2014 at 9:16 AM, Edward Diener <
> eldlistmailingz at tropicsoft.com> wrote:
>
>> What is the clang command that shows me the header search path ?
>>
I don't see the search path with -###.
The attached shows the output.
OTOH, using -v, as suggested in another thread:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-August/038611.html
does show the headers.
HTH.
-regards,
Larry
-------------- next part --------------
-*- mode: compilation; default-directory: "~/prog_dev/clang/" -*-
Compilation started at Fri Aug 15 08:05:52
make -f headers.mk compile.run
/usr/local/bin/clang++ -stdlib=libc++ -std=c++11 -### -x c++ cout.cpp
clang version 3.5.0 (http://llvm.org/git/clang.git c556f81241cf74850840c2e0df7a8f213674074d) (http://llvm.org/git/llvm.git db8cb2223d5dbe5e31099a2d69d4a4c8eab4b7f4)
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/usr/local/bin/clang" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free" "-main-file-name" "cout.cpp" "-mrelocation-model" "static" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-target-linker-version" "2.24" "-resource-dir" "/usr/local/bin/../lib/clang/3.5.0" "-internal-isystem" "/usr/local/bin/../include/c++/v1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/local/bin/../lib/clang/3.5.0/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-std=c++11" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/evansl/prog_dev/clang" "-ferror-limit" "19" "-fmessage-length" "113" "-mstackrealign" "-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option" "-o" "/tmp/cout-1b6199.o" "-x" "c++" "cout.cpp"
"/usr/bin/ld" "-z" "relro" "--hash-style=gnu" "--build-id" "--eh-frame-hdr" "-m" "elf_x86_64" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "/usr/lib/x86_64-linux-gnu/crt1.o" "/usr/lib/x86_64-linux-gnu/crti.o" "/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtbegin.o" "-L/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0" "-L/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib64" "-L/usr/local/bin/../lib64" "-L/lib/x86_64-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/x86_64-linux-gnu" "-L/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../.." "-L/usr/local/bin/../lib" "-L/lib" "-L/usr/lib" "/tmp/cout-1b6199.o" "-lc++" "-lm" "-lgcc_s" "-lgcc" "-lc" "-lgcc_s" "-lgcc" "/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtend.o" "/usr/lib/x86_64-linux-gnu/crtn.o"
./a.out
?
Compilation finished at Fri Aug 15 08:05:52
More information about the cfe-dev
mailing list