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

            Bug ID: 45449
           Summary: -C requires -E
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Upgrading Android's checkout of GNU Make to version 3.4
(https://android-review.googlesource.com/c/toolchain/make/+/1278571) exposed a
build failure due to the error: invalid argument '-C' only allowed with '-E'.

Documented here:
https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#Preprocessor-Options

I suspect it's just a slight papercut, and that we should just have `-C` imply
`-E` which I think would match GCC's behavior.  Otherwise we should submit a
patch to GNU Make to use `-C -E` together for portability to Clang.

-- 
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