From 15f07addc7b43ad045347917ce3b0ee443ece5d0 Mon Sep 17 00:00:00 2001 From: aPere3 Date: Fri, 24 Feb 2023 09:05:39 +0100 Subject: [PATCH] fix(concrete-compiler): abort compilation on first error To prevent infinite compilation in case of potential circular includes --- compiler/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt index b192ec463..09ce56170 100644 --- a/compiler/CMakeLists.txt +++ b/compiler/CMakeLists.txt @@ -12,6 +12,7 @@ add_definitions("-Wno-dollar-in-identifier-extension") add_definitions("-Wall ") add_definitions("-Werror ") +add_definitions("-Wfatal-errors") # If we are trying to build the compiler with LLVM/MLIR as libraries if(NOT DEFINED LLVM_EXTERNAL_CONCRETELANG_SOURCE_DIR)