Skip to content

Commit 76ea3ad

Browse files
pcaspersjenkins
authored andcommitted
comment out pch specific ENV definitions and compiler flag
1 parent 5a982b6 commit 76ea3ad

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Docker/Dockerfile-QuantLib

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ RUN apt-get update \
2121

2222
ENV PATH="/usr/lib/ccache:$PATH"
2323
ENV CCACHE_DIR="/ccache"
24-
ENV CCACHE_SLOPPINESS="pch_defines,time_macros,pch_defines,time_macros,include_file_mtime,include_file_ctim"
24+
#ENV CCACHE_SLOPPINESS="pch_defines,time_macros,pch_defines,time_macros,include_file_mtime,include_file_ctim"
2525
ENV CCACHE_MAXSIZE="10G"
2626

27-
# Need the dos2unix all if building from Windows because the shell
28-
# scripts fail if there are CRLF present in the files
27+
# - Need the dos2unix all if building from Windows because the shell
28+
# scripts fail if there are CRLF present in the files
29+
# - add -fpch-preprocess to CMAKE_CXX_FLAGS when QL_USE_PCH is set to ON
2930
RUN cd /ore/QuantLib \
3031
&& find -regex ".*\.\(sh\|in\|ac\|am\)" -exec dos2unix {} ';' \
3132
&& mkdir -p build.ql && cd build.ql \
32-
&& cmake .. -DQL_USE_PCH=OFF -DCMAKE_BUILD_TYPE=${cmake_build_type} -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="-D BOOST_ENABLE_ASSERT_HANDLER -mavx2 -fpch-preprocess" -DQL_ENABLE_SESSIONS=ON -DQL_ENABLE_PARALLEL_UNIT_TEST_RUNNER=ON -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_BENCHMARK=OFF
33+
&& cmake .. -DQL_USE_PCH=OFF -DCMAKE_BUILD_TYPE=${cmake_build_type} -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_FLAGS="-D BOOST_ENABLE_ASSERT_HANDLER -mavx2" -DQL_ENABLE_SESSIONS=ON -DQL_ENABLE_PARALLEL_UNIT_TEST_RUNNER=ON -DQL_BUILD_EXAMPLES=OFF -DQL_BUILD_BENCHMARK=OFF
3334

3435
WORKDIR /ore/QuantLib/build.ql
3536
RUN --mount=type=cache,target=/ccache/ ccache -z \

0 commit comments

Comments
 (0)