提交 95b4c9b4 编写于 作者: M Matt Pharr

Pass -fkeep-inline-functions to gcc before version 8

Attempt to workaround gcc bug.

Issue #37.
上级 672dfebb
......@@ -275,6 +275,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
list (APPEND PBRT_CXX_FLAGS "-fp-model ${FP_MODEL}")
endif ()
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)
list (APPEND PBRT_CXX_FLAGS -fkeep-inline-functions)
endif ()
if (MSVC AND MSVC_VERSION LESS 1920)
message (SEND_ERROR "pbrt-v4 currently requires MSVC 2019 to build on Windows. PRs that get MSVC 2017 working as well would be welcomed. :-)")
endif ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册