[libcxx-commits] [PATCH] D102048: [libc++] Run `substitutes-in-compile-flags.sh.cpp` test on Windows.

Vlad Vereschaka via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 6 21:46:22 PDT 2021


vvereschaka created this revision.
vvereschaka added a reviewer: ldionne.
vvereschaka added a project: libc++.
vvereschaka requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Fix for `substitutes-in-compile-flags.sh.cpp` to run it properly on Windows platform.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102048

Files:
  libcxx/test/libcxx/selftest/additional_compile_flags/substitutes-in-compile-flags.sh.cpp


Index: libcxx/test/libcxx/selftest/additional_compile_flags/substitutes-in-compile-flags.sh.cpp
===================================================================
--- libcxx/test/libcxx/selftest/additional_compile_flags/substitutes-in-compile-flags.sh.cpp
+++ libcxx/test/libcxx/selftest/additional_compile_flags/substitutes-in-compile-flags.sh.cpp
@@ -9,10 +9,11 @@
 // This test greps for %t, which is expanded to a path with backslashes. When
 // that is passed to grep, those backslashes would have to be escaped, which we
 // don't do right now.
-// UNSUPPORTED: windows
 
 // Make sure that substitutions are performed inside additional compiler flags.
 
 // ADDITIONAL_COMPILE_FLAGS: -I %t.1
 // ADDITIONAL_COMPILE_FLAGS: -isystem %t.2 , -isysroot %t.3
-// RUN: echo "%{compile_flags}" | grep -e '-I %t.1 -isystem %t.2 -isysroot %t.3'
+// RUN: echo "-I %t.1 -isystem %t.2 -isysroot %t.3" | sed "s/\\\/\\\\\\\/g" > %t.grep
+// RUN: echo "%{compile_flags}" | grep -e -f %t.grep
+// RUN: rm %t.grep


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102048.343575.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210507/4074a462/attachment.bin>


More information about the libcxx-commits mailing list