Skip to content

Commit

Permalink
[vcpkg] Improve performance of compiler tracking by suppressing aspec…
Browse files Browse the repository at this point in the history
…ts of CMake's compiler detection. (#12203)

Co-authored-by: Robert Schumacher <[email protected]>
  • Loading branch information
ras0219 and ras0219-msft authored Jul 2, 2020
1 parent a218d0e commit 9ddf284
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/detect_compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
cmake_minimum_required(VERSION 3.10)
project(detect_compiler)
project(detect_compiler NONE)

set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_COMPILER_FORCED 1)
set(CMAKE_CXX_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_COMPILER_FORCED 1)

enable_language(C)
enable_language(CXX)

file(SHA1 "${CMAKE_CXX_COMPILER}" CXX_HASH)
file(SHA1 "${CMAKE_C_COMPILER}" C_HASH)
Expand Down
3 changes: 3 additions & 0 deletions scripts/detect_compiler/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: detect-compiler
Version: 0
Description: None

0 comments on commit 9ddf284

Please sign in to comment.