[compiler-rt] r208896 - Teach the compiler-rt custom compilation and linking CMake rules used
rnk at google.com
Thu May 15 10:31:27 PDT 2014
On Thu, May 15, 2014 at 9:01 AM, Chandler Carruth <chandlerc at gmail.com>wrote:
> On Thu, May 15, 2014 at 9:43 AM, Timur Iskhodzhanov <timurrrr at google.com>wrote:
>> This breaks the build on Windows
>> FAILED: cmd.exe /c cd /D ...\projects\compiler-rt\lib\asan\tests &&
>> /machine:X86 /STACK:10000000 -fsanitize=address
>> clang-cl.exe: error: no such file or directory: '/machine:X86'
>> clang-cl.exe: error: no such file or directory: '/STACK:10000000'
> Is it that you can't use '/' spelled flags after the file arguments? Does
> the patch here fix? http://paste2.org/8X69zf0v
> I'm asking others to test as well and will commit if i get the indication
> that this fixes things.
/machine and /stack are linker flags that clang-cl doesn't know about. The
error is misleading, though, and we should fix it.
Generally, MSVC does not invoke the compiler to perform links, so the
compiler doesn't have to know about linker flags. You can send linker
flags through the compiler if you put them after /link, like:
clang-cl.exe a.o b.o -Fefoo.exe -fsanitize=address /link /machine:X86
These particular flags aren't actually useful, though. For now I'd
conditionalize this under NOT MSVC.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits