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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to