Skip to content

Commit 6cb2fd4

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

File tree

7 files changed

+1331
-1320
lines changed

7 files changed

+1331
-1320
lines changed

src/CMakeLists.txt

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

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

0 commit comments

Comments
 (0)