[libcxx-commits] [libcxx] [libc++] Fix initialization-order-fiasco with iostream.cpp constructors (PR #126995)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 13 00:04:16 PST 2025
================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <iostream>
+
+extern "C" const char* __asan_default_options() { return "check_initialization_order=true:strict_init_order=true"; }
----------------
philnik777 wrote:
Can we just change the default options in the CI?
https://github.com/llvm/llvm-project/pull/126995
More information about the libcxx-commits
mailing list