[LLVMbugs] [Bug 17022] New: [ASan RTL] Wrong flags when building the runtime on Windows?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 28 05:05:32 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17022

            Bug ID: 17022
           Summary: [ASan RTL] Wrong flags when building the runtime on
                    Windows?
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Here are the flags that look suspicious to me (from "ninja -v
clang_rt.asan-i386.lib"):

CXX ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_symbolizer_win.cc
c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe ... \
  ... /GR ... /MD ... /MT ... /GR- ... \
  -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
-D_CRT_SECURE_NO_DEPRECATE \
  -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_WARNINGS \
  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS ... \
  ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_symbolizer_win.cc

The MT/MD and GR/GR- pairs conflict with each other (should be just MT out of
these four).

Also, I'm not sure we want these -D's to be present.

FTR, I've generated the project using:
$ cmake -GNinja -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_BUILD_TYPE=Release
-DLLVM_TARGETS_TO_BUILD=X86 ..

-- 
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/20130828/367ebe83/attachment.html>


More information about the llvm-bugs mailing list