Link is not enough, copy & duplicate tab files for LEF & DEF.

This commit is contained in:
Jean-Paul Chaput 2021-10-18 18:58:35 +02:00
parent c8fd3c0bec
commit 180aa52c74
2 changed files with 4 additions and 3 deletions

View File

@ -81,7 +81,8 @@
add_custom_command ( OUTPUT def.tab.cpp add_custom_command ( OUTPUT def.tab.cpp
DEPENDS ${DefParserGrammar} DEPENDS ${DefParserGrammar}
COMMAND ${BISON_EXECUTABLE} -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp COMMAND ${BISON_EXECUTABLE} -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp
COMMAND ln -s def.tab.hpp def.tab.h COMMAND cp def.tab.hpp ${LEFDEF_SOURCE_DIR}/def.tab.hpp
COMMAND cp def.tab.hpp ${LEFDEF_SOURCE_DIR}/def.tab.h
#COMMAND mv def.tab.cpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.cpp #COMMAND mv def.tab.cpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.cpp
COMMENT "Generating DEF parser (bison)" COMMENT "Generating DEF parser (bison)"
) )

View File

@ -61,8 +61,8 @@
add_custom_command ( OUTPUT lef.tab.cpp add_custom_command ( OUTPUT lef.tab.cpp
DEPENDS ${LefParserGrammar} DEPENDS ${LefParserGrammar}
COMMAND ${BISON_EXECUTABLE} -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp COMMAND ${BISON_EXECUTABLE} -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp
COMMAND ln -s lef.tab.hpp lef.tab.h COMMAND cp lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.hpp
#COMMAND mv lef.tab.cpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.cpp COMMAND cp lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h
COMMENT "Generating LEF parser (bison)" COMMENT "Generating LEF parser (bison)"
) )
set_source_files_properties ( lef.tab.cpp GENERATED ) set_source_files_properties ( lef.tab.cpp GENERATED )