diff options
author | Rahul Kumar <rahku@microsoft.com> | 2015-02-08 22:04:06 -0800 |
---|---|---|
committer | Rahul Kumar <rahku@microsoft.com> | 2015-02-08 22:04:06 -0800 |
commit | e092ea19d2fba739f4b1efa5ab204b6ee724c7f8 (patch) | |
tree | d7343438c0d52963df401230b3f5c7bf68ad3e08 /src/md | |
parent | 4cca1a4b23d0dd7c18c30eff378cea759a8f1a9e (diff) | |
download | coreclr-e092ea19d2fba739f4b1efa5ab204b6ee724c7f8.tar.gz coreclr-e092ea19d2fba739f4b1efa5ab204b6ee724c7f8.tar.bz2 coreclr-e092ea19d2fba739f4b1efa5ab204b6ee724c7f8.zip |
precompile common headers to reduce build time for win builds. With this build time on my machine has reduced from 19mins to 10mins.
[tfs-changeset: 1412352]
Diffstat (limited to 'src/md')
-rw-r--r-- | src/md/ceefilegen/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/compiler/dac/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/md/compiler/dbi/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/compiler/wks/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/datasource/dbi/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/enc/dac/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/md/enc/dbi/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/enc/wks/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/hotdata/dac/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/hotdata/full-staticcrt/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/hotdata/full/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/runtime/dac/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/runtime/dbi/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/md/runtime/wks/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/winmd/dac/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/md/winmd/dbi/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/md/winmd/wks/CMakeLists.txt | 2 |
17 files changed, 30 insertions, 0 deletions
diff --git a/src/md/ceefilegen/CMakeLists.txt b/src/md/ceefilegen/CMakeLists.txt index 2df7055400..146c6a02c3 100644 --- a/src/md/ceefilegen/CMakeLists.txt +++ b/src/md/ceefilegen/CMakeLists.txt @@ -15,6 +15,8 @@ if(CLR_CMAKE_PLATFORM_UNIX) add_compile_options(-fPIC) endif(CLR_CMAKE_PLATFORM_UNIX) +add_precompiled_header(stdafx.h stdafx.cpp CEEFILEGEN_SOURCES) + add_library(ceefgen STATIC ${CEEFILEGEN_SOURCES} diff --git a/src/md/compiler/dac/CMakeLists.txt b/src/md/compiler/dac/CMakeLists.txt index efc424b572..a73f7b0459 100644 --- a/src/md/compiler/dac/CMakeLists.txt +++ b/src/md/compiler/dac/CMakeLists.txt @@ -2,4 +2,5 @@ include(${CLR_DIR}/dac.cmake) include(../../md_dac.cmake) +add_precompiled_header(stdafx.h ../stdafx.cpp MDCOMPILER_SOURCES) add_library(mdcompiler_dac ${MDCOMPILER_SOURCES}) diff --git a/src/md/compiler/dbi/CMakeLists.txt b/src/md/compiler/dbi/CMakeLists.txt index 4244eec4e7..e60d67767b 100644 --- a/src/md/compiler/dbi/CMakeLists.txt +++ b/src/md/compiler/dbi/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_dbi.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDCOMPILER_SOURCES) add_library(mdcompiler-dbi ${MDCOMPILER_SOURCES})
\ No newline at end of file diff --git a/src/md/compiler/wks/CMakeLists.txt b/src/md/compiler/wks/CMakeLists.txt index a004ed9df9..7eb09e7524 100644 --- a/src/md/compiler/wks/CMakeLists.txt +++ b/src/md/compiler/wks/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_wks.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDCOMPILER_SOURCES) add_library(mdcompiler_wks ${MDCOMPILER_SOURCES})
\ No newline at end of file diff --git a/src/md/datasource/dbi/CMakeLists.txt b/src/md/datasource/dbi/CMakeLists.txt index 248335b8e9..c509c19410 100644 --- a/src/md/datasource/dbi/CMakeLists.txt +++ b/src/md/datasource/dbi/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_dbi.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDDATASOURCE_SOURCES) add_library(mddatasource_dbi STATIC ${MDDATASOURCE_SOURCES})
\ No newline at end of file diff --git a/src/md/enc/dac/CMakeLists.txt b/src/md/enc/dac/CMakeLists.txt index b651fc28ac..90f7e786b6 100644 --- a/src/md/enc/dac/CMakeLists.txt +++ b/src/md/enc/dac/CMakeLists.txt @@ -2,4 +2,5 @@ include(${CLR_DIR}/dac.cmake) include(../../md_dac.cmake) +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIMERW_SOURCES) add_library(mdruntimerw_dac ${MDRUNTIMERW_SOURCES}) diff --git a/src/md/enc/dbi/CMakeLists.txt b/src/md/enc/dbi/CMakeLists.txt index 7898bfafdd..6cd97dd5bd 100644 --- a/src/md/enc/dbi/CMakeLists.txt +++ b/src/md/enc/dbi/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_dbi.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIMERW_SOURCES) add_library(mdruntimerw-dbi ${MDRUNTIMERW_SOURCES})
\ No newline at end of file diff --git a/src/md/enc/wks/CMakeLists.txt b/src/md/enc/wks/CMakeLists.txt index e31d8ec056..5b596ed7fa 100644 --- a/src/md/enc/wks/CMakeLists.txt +++ b/src/md/enc/wks/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_wks.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIMERW_SOURCES) add_library(mdruntimerw_wks ${MDRUNTIMERW_SOURCES}) diff --git a/src/md/hotdata/dac/CMakeLists.txt b/src/md/hotdata/dac/CMakeLists.txt index 9f37472641..02519679d3 100644 --- a/src/md/hotdata/dac/CMakeLists.txt +++ b/src/md/hotdata/dac/CMakeLists.txt @@ -1,4 +1,6 @@ include(${CLR_DIR}/dac.cmake) +add_precompiled_header(external.h ../external.cpp MDHOTDATA_SOURCES) + add_library(mdhotdata_dac ${MDHOTDATA_SOURCES}) diff --git a/src/md/hotdata/full-staticcrt/CMakeLists.txt b/src/md/hotdata/full-staticcrt/CMakeLists.txt index dd7488f768..3d796a23c0 100644 --- a/src/md/hotdata/full-staticcrt/CMakeLists.txt +++ b/src/md/hotdata/full-staticcrt/CMakeLists.txt @@ -1,2 +1,4 @@ add_definitions(-D_CRTIMP=) # static link of crt + +add_precompiled_header(external.h ../external.cpp MDHOTDATA_SOURCES) add_library(mdhotdata-staticcrt ${MDHOTDATA_SOURCES}) diff --git a/src/md/hotdata/full/CMakeLists.txt b/src/md/hotdata/full/CMakeLists.txt index 688dfbee9a..15448b182a 100644 --- a/src/md/hotdata/full/CMakeLists.txt +++ b/src/md/hotdata/full/CMakeLists.txt @@ -1 +1,3 @@ +add_precompiled_header(external.h ../external.cpp MDHOTDATA_SOURCES) + add_library(mdhotdata_full ${MDHOTDATA_SOURCES}) diff --git a/src/md/runtime/dac/CMakeLists.txt b/src/md/runtime/dac/CMakeLists.txt index 620bc5bbc5..63ce26a1e9 100644 --- a/src/md/runtime/dac/CMakeLists.txt +++ b/src/md/runtime/dac/CMakeLists.txt @@ -2,4 +2,6 @@ include(${CLR_DIR}/dac.cmake) include(../../md_dac.cmake) +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIME_SOURCES) + add_library(mdruntime_dac ${MDRUNTIME_SOURCES})
\ No newline at end of file diff --git a/src/md/runtime/dbi/CMakeLists.txt b/src/md/runtime/dbi/CMakeLists.txt index 5276477f1c..2cc8420c27 100644 --- a/src/md/runtime/dbi/CMakeLists.txt +++ b/src/md/runtime/dbi/CMakeLists.txt @@ -1,2 +1,3 @@ include(../../md_dbi.cmake) +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIME_SOURCES) add_library(mdruntime-dbi ${MDRUNTIME_SOURCES})
\ No newline at end of file diff --git a/src/md/runtime/wks/CMakeLists.txt b/src/md/runtime/wks/CMakeLists.txt index bbb718d98e..4822219c8c 100644 --- a/src/md/runtime/wks/CMakeLists.txt +++ b/src/md/runtime/wks/CMakeLists.txt @@ -1,3 +1,5 @@ include(../../md_wks.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDRUNTIME_SOURCES) add_library(mdruntime_wks ${MDRUNTIME_SOURCES}) diff --git a/src/md/winmd/dac/CMakeLists.txt b/src/md/winmd/dac/CMakeLists.txt index 44806103c6..31e6bb0deb 100644 --- a/src/md/winmd/dac/CMakeLists.txt +++ b/src/md/winmd/dac/CMakeLists.txt @@ -2,4 +2,5 @@ include(${CLR_DIR}/dac.cmake) include(../../md_dbi.cmake) +add_precompiled_header(stdafx.h ../stdafx.cpp MDWINMD_SOURCES) add_library(mdwinmd_dac ${MDWINMD_SOURCES}) diff --git a/src/md/winmd/dbi/CMakeLists.txt b/src/md/winmd/dbi/CMakeLists.txt index 12a06e29e1..707b6b4c74 100644 --- a/src/md/winmd/dbi/CMakeLists.txt +++ b/src/md/winmd/dbi/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_dbi.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDWINMD_SOURCES) add_library(mdwinmd_dbi ${MDWINMD_SOURCES})
\ No newline at end of file diff --git a/src/md/winmd/wks/CMakeLists.txt b/src/md/winmd/wks/CMakeLists.txt index 226dfb31cf..67b1f686f5 100644 --- a/src/md/winmd/wks/CMakeLists.txt +++ b/src/md/winmd/wks/CMakeLists.txt @@ -1,2 +1,4 @@ include(../../md_wks.cmake) + +add_precompiled_header(stdafx.h ../stdafx.cpp MDWINMD_SOURCES) add_library(mdwinmd_wks ${MDWINMD_SOURCES})
\ No newline at end of file |