Skip to content

Commit 5ae363e

Browse files
tautschnigrurban
authored andcommitted
Rename yyalloc to avoid duplicate definitions with LTO
This is for CMake only as we haven't currently got an LTO set-up for Makefile builds.
1 parent 3d3be74 commit 5ae363e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ macro(generic_bison name)
2525
endif()
2626

2727
set(bison_source "${name}_y.tab.cpp")
28+
set_source_files_properties(${bison_source} PROPERTIES COMPILE_FLAGS -Dyyalloc=${name}_yyalloc)
2829
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${bison_source}")
2930
message(FATAL_ERROR "Generated file ${bison_source} found in source tree. If you previously built with `make`, run `make clean` and try again")
3031
endif()

0 commit comments

Comments
 (0)