Skip to content

Commit c9897f5

Browse files
committed
lto: rename the bison tokens to ATOK, JTOK, and STOK
to avoid -Wodr with LTO.
1 parent ff22099 commit c9897f5

File tree

9 files changed

+1360
-1349
lines changed

9 files changed

+1360
-1349
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ macro(generic_bison name)
2424

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

0 commit comments

Comments
 (0)