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

            Bug ID: 22424
           Summary: Clang on 64-bit Windows defaults to trying to generate
                    32-bit code
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

When you build Clang on 64-bit Windows using the 64-bit Microsoft C++ compiler,
the resulting version of Clang still defaults to generating 32-bit code,
leading to nonobvious link time error messages on a test compile of hello.c as
described in:

http://stackoverflow.com/questions/18452967/clang-microsoft-linker-and-standard-library

This can be worked around by supplying Clang with the -m64 command line option,
but the need for this isn't clear from the error message.

The preferred solution would be for the compiler to default to generating
64-bit code when on a 64-bit system or built with 64-bit Microsoft C++.

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