From f29cfe2bf914eef6d6d41576e2a7ec31153f2ee6 Mon Sep 17 00:00:00 2001 From: Lee Cantey Date: Thu, 22 Oct 2026 15:34:14 -0700 Subject: [PATCH] Borland: Do not identify Clang-based Embarcadero compilers The Borland compiler identification test matches any compiler that defines __BORLANDC__, including the Clang-based Embarcadero compilers. Those are identified as Embarcadero before Borland is tried, so the result does not change, but exclude them so that the test matches only the compilers it is meant to identify. --- Modules/Compiler/Borland-DetermineCompiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/Borland-DetermineCompiler.cmake b/Modules/Compiler/Borland-DetermineCompiler.cmake index ef3083b4d1..48dce7bee7 100644 --- a/Modules/Compiler/Borland-DetermineCompiler.cmake +++ b/Modules/Compiler/Borland-DetermineCompiler.cmake @@ -1,5 +1,5 @@ -set(_compiler_id_pp_test "defined(__BORLANDC__)") +set(_compiler_id_pp_test "defined(__BORLANDC__) && !defined(__clang__)") set(_compiler_id_version_compute " /* __BORLANDC__ = 0xVRR */