<br><br>On Thursday, February 19, 2015, Timur Iskhodzhanov <<a href="mailto:timurrrr@google.com">timurrrr@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The comment came with my private code. But I don't feel strongly about it.</blockquote><div><br></div><div>I see.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>The thing is: we might be running on Windows, but targeting a different OS. In which case we don't want to pass LIB along. Your toolchain runs on Windows, but you're compiling for arch-vendor-anotheros.</div></blockquote><div><br></div><div>I'm not sure how cross-compilation of tests works in LLVM.<br>Do we ever invoke LIT for anything that we can't run on the current system?</div></div></div></blockquote><div>You can just set COMPILER_RT_EMULATOR and all tests will be run with it.</div><div>With that + a clang built with -DLLVM_DEFAULT_TARGET_TRIPLE=... you can easily cross-compile and run the compiler-rt tests.</div><div><br></div><div>I have another patch I might submit to phabricator to see if there's an interest in having it, which allows you to easily set additional compiler flags for the tests (useful if your toolchain doesn't fully support the -fsanitize= linking args, but not that useful elsewhere).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Wouldn't lld on Windows also look at LIB if it was emulating link.exe (I don't know if there's a mode for that, like for emulating ld)?</div></blockquote><div><br></div><div>Good point, I'm pretty sure LLD would need LIB to be set too.</div></div></div>
</blockquote>