From 46210be9591ef8b7ec1a1772d101d2429680d01e Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Mon, 21 Sep 2020 18:47:57 +0700 Subject: [PATCH] [Runtime testing] Enable runtime assertions in runtime tests --- runtime/src/test_support/cpp/CompilerGenerated.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/test_support/cpp/CompilerGenerated.cpp b/runtime/src/test_support/cpp/CompilerGenerated.cpp index a5c51baed50..6e29a39841c 100644 --- a/runtime/src/test_support/cpp/CompilerGenerated.cpp +++ b/runtime/src/test_support/cpp/CompilerGenerated.cpp @@ -40,7 +40,8 @@ struct KBox { extern "C" { -extern const int KonanNeedDebugInfo = 0; +// Set to 1 to enable runtime assertions. +extern const int KonanNeedDebugInfo = 1; extern const TypeInfo* theAnyTypeInfo = &theAnyTypeInfoImpl; extern const TypeInfo* theArrayTypeInfo = &theArrayTypeInfoImpl;