Only enable `no-register ` option if ccache is enabled because of ccache problem

This commit is contained in:
Alvin Moore 2019-09-17 12:15:58 -07:00 committed by Alex Miller
parent 2bbaa917f8
commit 9ae1125a85
1 changed files with 1 additions and 1 deletions

View File

@ -193,10 +193,10 @@ else()
-Wno-undefined-var-template
-Wno-unused-value
-Wno-tautological-pointer-compare
-Wno-register
-Wno-format)
if (USE_CCACHE)
add_compile_options(
-Wno-register
-Wno-error=unused-command-line-argument)
endif()
endif()