[llvm-bugs] [Bug 44840] New: `llvm-config --cxxflags` does not include the C++ standard on Windows

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 7 14:28:08 PST 2020


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

            Bug ID: 44840
           Summary: `llvm-config --cxxflags` does not include the C++
                    standard on Windows
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dmajor at mozilla.com
                CC: compnerd at compnerd.org, htmldeveloper at gmail.com,
                    llvm-bugs at lists.llvm.org

Linux, 10.0.0 release candidate branch:

$ llvm-config --cxxflags
-I/home/vm/src/llvm.install/include -std=c++14   -fno-exceptions -fno-rtti
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS

Windows, 10.0.0 release candidate branch:

e:\llvm.out\bin>llvm-config.exe --cxxflags
-IE:\llvm-project\llvm\include -IE:\llvm.out\include    /EHs-c- /GR-
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DUNICODE -D_UNICODE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

Note the missing `-std=c++14` on Windows.

+compnerd because
https://github.com/llvm/llvm-project/commit/7a25de6d2073f77ea1a0d8f4cd715bec55678941
looks like it was trying to solve a similar problem, it seems not to have
worked on Windows though.

-- 
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/20200207/a3281c28/attachment.html>


More information about the llvm-bugs mailing list