瀏覽代碼

Merge topic 'armcc-compiler-id'

f28e7fc1a5 ARMCC: Do not identify ARMClang as ARMCC

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3187
Brad King 6 年之前
父節點
當前提交
cf70b87143
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/Compiler/ARMCC-DetermineCompiler.cmake

+ 1 - 1
Modules/Compiler/ARMCC-DetermineCompiler.cmake

@@ -1,5 +1,5 @@
 # ARMCC Toolchain
-set(_compiler_id_pp_test "defined(__ARMCC_VERSION)")
+set(_compiler_id_pp_test "defined(__ARMCC_VERSION) && !defined(__clang__)")
 
 set(_compiler_id_version_compute "
 #if __ARMCC_VERSION >= 1000000