diff --git a/contrib/teamcity/build-configurations.py b/contrib/teamcity/build-configurations.py --- a/contrib/teamcity/build-configurations.py +++ b/contrib/teamcity/build-configurations.py @@ -187,7 +187,8 @@ generator = self.config.get("generator", {}) generator_name = generator.get("name", "Ninja") generator_command = generator.get("command", "ninja") - generator_flags = generator.get("flags", ["-k0"]) + generator_flags = generator.get( + "flags", ["-k0"] if not self.config.get("fail_fast", False) else []) # Max out the jobs by default when the generator uses make if generator_command == "make": diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -39,6 +39,7 @@ build-asan: Werror: true clang: true + fail_fast: true cmake_flags: - '-DCMAKE_CXX_FLAGS=-DARENA_DEBUG' - '-DCMAKE_BUILD_TYPE=Debug' @@ -79,6 +80,7 @@ build-clang-tidy: runOnDiff: true clang: true + fail_fast: true cmake_flags: - '-DENABLE_CLANG_TIDY=ON' targets: @@ -276,6 +278,7 @@ build-tsan: Werror: true clang: true + fail_fast: true cmake_flags: - '-DENABLE_SANITIZERS=thread' targets: @@ -290,6 +293,7 @@ build-ubsan: Werror: true clang: true + fail_fast: true cmake_flags: - '-DCMAKE_BUILD_TYPE=Debug' - '-DENABLE_SANITIZERS=undefined'