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 Nov 1, 2024
1 parent badadb3 commit 7569f47
Show file tree
Hide file tree
Showing 9 changed files with 1,360 additions and 1,349 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 7569f47

Please sign in to comment.