Skip to content

Commit

Permalink
lto: rename the bison tokens to ATOK, JTOK, and STOK
Browse files Browse the repository at this point in the history
to avoid -Wodr with LTO.
  • Loading branch information
rurban committed Oct 31, 2024
1 parent 6e29843 commit 060bd05
Show file tree
Hide file tree
Showing 7 changed files with 1,338 additions and 1,327 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ macro(generic_bison name)

set(bison_source "${name}_y.tab.cpp")
set_source_files_properties(${bison_source} PROPERTIES
COMPILE_FLAGS "-Dyyalloc=${name}_yyalloc -Dyysymbol_kind_t=${name}_yysymbol_kind_t")
COMPILE_FLAGS "-Dyyalloc=${name}_yyalloc -Dyysymbol_kind_t=${name}_yysymbol_kind_t -Dyytokentype=${name}_yytokentype")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${bison_source}")
message(FATAL_ERROR "Generated file ${bison_source} found in source tree. If you previously built with `make`, run `make clean` and try again")
endif()
Expand Down
Loading

0 comments on commit 060bd05

Please sign in to comment.