[compiler-rt] Test fixups for MSVC. (PR #109887)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 02:18:38 PDT 2024


================
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan %if MSVC %{ /Od %} %else %{ /O1 %} %s -o %t && not %run %t 2>&1 | FileCheck %s
----------------
mstorsjo wrote:

This was using `-O1` which works both with MSVC, clang-cl and the clang driver, don't switch to `/O1` which isn't accepted by the GNU style clang driver.

https://github.com/llvm/llvm-project/pull/109887


More information about the llvm-commits mailing list