https://bugs.llvm.org/show_bug.cgi?id=40678

            Bug ID: 40678
           Summary: llvm-config generates options that are incompatible
                    with clang++
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Created attachment 21460
  --> https://bugs.llvm.org/attachment.cgi?id=21460&action=edit
Output from "llvm-config --cxxflags"

I have a minimal C++ file (named test.cc), and I try to compile it with clang++
and llvm-config.

I run the command:
clang++ `llvm-config --cxxflags` test.cc

This command fails with the error:
clang-7: error: unknown argument: '-fstack-clash-protection'

If I run "llvm-config --cxxflags" alone I see that the problematic option is
indeed part of the output. The full output is attached.

I believe this is an error, and that the options generated by the llvm-config
command should all be accepted by the clang++ command.


Additional information:

I can compile the given file test.cc without problems if I don't invoke
llvm-config, i.e. the following command works without error:
clang++ test.cc

The versions I'm using are: 7.0.1 for both clang++ and llvm-config.

I'm using Fedora 29 (64-bit).

P.S. This is all part of a large project (not my own) on github
(https://github.com/ghdl/ghdl).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to