[libcxx-commits] [libcxx] 6bc78f0 - [libc++][PSTL] Make sure that -fexperimental-library enables the PSTL

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 25 08:01:06 PDT 2023


Author: Nikolas Klauser
Date: 2023-05-25T08:01:00-07:00
New Revision: 6bc78f0cdba4ffc7fcf26215b33f6d01f2059032

URL: https://github.com/llvm/llvm-project/commit/6bc78f0cdba4ffc7fcf26215b33f6d01f2059032
DIFF: https://github.com/llvm/llvm-project/commit/6bc78f0cdba4ffc7fcf26215b33f6d01f2059032.diff

LOG: [libc++][PSTL] Make sure that -fexperimental-library enables the PSTL

@Mordante noticed that this was missing while making `<format>` non-experimental.

Reviewed By: ldionne, Mordante, #libc

Spies: libcxx-commits, Mordante

Differential Revision: https://reviews.llvm.org/D151240

Added: 
    

Modified: 
    libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp b/libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp
index bcdfaf288aae..e257a66d88b3 100644
--- a/libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp
+++ b/libcxx/test/libcxx/experimental/fexperimental-library.compile.pass.cpp
@@ -22,3 +22,7 @@
 // ADDITIONAL_COMPILE_FLAGS: -fexperimental-library
 
 #include <version>
+
+#ifdef _LIBCPP_HAS_NO_INCOMPLETE_PSTL
+#  error "-fexperimental-library should enable the PSTL"
+#endif


        


More information about the libcxx-commits mailing list