From 7721555edf89b231ad78744c6b4f7cc42c8a20a0 Mon Sep 17 00:00:00 2001 From: galabovaa Date: Sat, 2 Mar 2024 22:21:57 +0000 Subject: [PATCH] try to split large pdb files into smaller ones --- CMakeLists.txt | 5 +++++ cmake/sources.cmake | 3 +-- src/CMakeLists.txt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa48cc8951..22b0048cd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -295,7 +295,12 @@ if(MSVC) # add_compile_options("$<$:/wd4018 /wd4061 /wd4100 /wd4101 /wd4127 /wd4189 /wd4244 /wd4245 /wd4267 /wd4324 /wd4365 /wd4389 /wd4456 /wd4457 /wd4458 /wd4459 /wd4514 /wd4701 /wd4820>") add_compile_options("$<$:/MP>") add_compile_options("$<$:-D_CRT_SECURE_NO_WARNINGS>") + add_compile_options("$<$:/MP>") + # Try to split large pdb files into objects. + # https://github.com/tensorflow/tensorflow/issues/31610 + add_compile_options("/Z7") + add_link_options("/DEBUG:FASTLINK") if(STDCALL) # /Gz - stdcall calling convention add_definitions(/Gz) diff --git a/cmake/sources.cmake b/cmake/sources.cmake index c7db72cc7b..cdf1096991 100644 --- a/cmake/sources.cmake +++ b/cmake/sources.cmake @@ -20,8 +20,7 @@ set(include_dirs ${CMAKE_SOURCE_DIR}/src/simplex ${CMAKE_SOURCE_DIR}/src/test ${CMAKE_SOURCE_DIR}/src/util - $ - $) set(cupdlp_sources pdlp/cupdlp/cupdlp_cs.c diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eaa36e2a28..399ad7816e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -137,7 +137,7 @@ else() target_include_directories(highs PUBLIC $ $ - $ + # $ ) # target_include_directories(highs PRIVATE