Skip to content

Commit

Permalink
Improving clang flags in the generated projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Sep 25, 2024
1 parent e4f8aa2 commit caa5250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/commsdsl2swig/src/SwigCmake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool SwigCmake::swigWriteInternal() const
" target_link_libraries(#^#PROJ_NAME#$#_swig_${lang} ${OPT_PROTOCOL_TARGET} cc::comms)\n"
" target_compile_options(#^#PROJ_NAME#$#_swig_${lang} PRIVATE\n"
" $<$<CXX_COMPILER_ID:GNU>:-ftemplate-depth=2048 -fconstexpr-depth=4096>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096 -fbracket-depth=2048>\n"
" )\n"
"endforeach()\n\n"
"#^#APPEND#$#"
Expand Down
4 changes: 2 additions & 2 deletions app/commsdsl2tools_qt/src/ToolsQtCmake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bool ToolsQtCmake::testWriteInternal() const
" target_compile_options(${name} PRIVATE\n"
" $<$<CXX_COMPILER_ID:MSVC>:/bigobj /wd4127 /wd5054>\n"
" $<$<CXX_COMPILER_ID:GNU>:-ftemplate-depth=2048 -fconstexpr-depth=4096 -Wno-unused-local-typedefs>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096 -Wno-unused-local-typedefs>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096 -fbracket-depth=2048 -Wno-unused-local-typedefs>\n"
" )\n\n"
"endfunction()\n\n"
"######################################################################\n\n"
Expand Down Expand Up @@ -149,7 +149,7 @@ bool ToolsQtCmake::testWriteInternal() const
" target_compile_options(${name} PRIVATE\n"
" $<$<CXX_COMPILER_ID:MSVC>:/bigobj /wd4127 /wd5054>\n"
" $<$<CXX_COMPILER_ID:GNU>:-ftemplate-depth=2048 -fconstexpr-depth=4096>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096>\n"
" $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=2048 -fconstexpr-depth=4096 -fbracket-depth=2048>\n"
" )\n\n"
" install (\n"
" TARGETS ${name}\n"
Expand Down

0 comments on commit caa5250

Please sign in to comment.