Split Builtin.hpp into multiple compile units for g++-12.
g++-12 needs quite some memory and time to compile it. We now use several Builtin*.cpp for the imlementations for different starting letters of eclipse keywords to use less resources for compiling.
This commit is contained in:
@@ -57,10 +57,12 @@ foreach (name A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)
|
||||
list(APPEND _tmp_output ${PROJECT_BINARY_DIR}/tmp_gen/ParserKeywords/${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/tmp_gen/include/opm/input/eclipse/Parser/ParserKeywords/${name}.hpp
|
||||
${PROJECT_BINARY_DIR}/tmp_gen/ParserKeywords/ParserInit${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/tmp_gen/ParserKeywords/Builtin${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/tmp_gen/include/opm/input/eclipse/Parser/ParserKeywords/ParserInit${name}.hpp)
|
||||
list(APPEND _target_output ${PROJECT_BINARY_DIR}/ParserKeywords/${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/include/opm/input/eclipse/Parser/ParserKeywords/${name}.hpp
|
||||
${PROJECT_BINARY_DIR}/ParserKeywords/ParserInit${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/ParserKeywords/Builtin${name}.cpp
|
||||
${PROJECT_BINARY_DIR}/include/opm/input/eclipse/Parser/ParserKeywords/ParserInit${name}.hpp)
|
||||
endforeach()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user