[LLVMbugs] [Bug 18723] New: clang-cl: support UseNativeEnvironment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 4 04:19:37 PST 2014


            Bug ID: 18723
           Summary: clang-cl: support UseNativeEnvironment
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: marci_r at web.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Visual C++ 2013 has a amd64-x86 cross compiler. If you add
to your project file, the 64-bit compiler is used for building 32-bit
applications. This option is essential if you want to compile with the Visual
C++ November 2013 CTP and use precompiled headers as you get compiler errors

If you try to build a project with this option with clang-cl in Visual Studio,
you get the following error:

1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(341,5): error
MSB6006: "CL.exe" exited with code -1073741701.

This is because clang-cl is a 32-bit application and Visual Studio expects a
64-bit application. To fix this, there has to be a 64-bit version of clang-cl
and the following line has to be added for the toolset.props of the LLVM-vs2013
and LLVM-vs2013_xp toolsets, expecting a 64-bit executable in

<ExecutablePath Condition="'$(UseNativeEnvironment)' ==

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/20140204/f1f83ca8/attachment.html>

More information about the llvm-bugs mailing list