diff options
author | v-korovin <v-korovin@yandex-team.com> | 2024-05-06 12:57:17 +0300 |
---|---|---|
committer | v-korovin <v-korovin@yandex-team.com> | 2024-05-06 13:07:06 +0300 |
commit | 86fa90c3f199cb8af7bb07188a11da49f5e8e984 (patch) | |
tree | c9594f8369edd0d6fc947be5e4809707029e82a1 /build | |
parent | 3635be4c02929a9a199fdc2320065eb1c8c28168 (diff) | |
download | ydb-86fa90c3f199cb8af7bb07188a11da49f5e8e984.tar.gz |
bison suffix fix
4d6f624d29e1ac8a6f2d56b23cd35545a9427938
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/bison_lex.conf | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build/conf/bison_lex.conf b/build/conf/bison_lex.conf index 71a7218ad2..ba77b967f8 100644 --- a/build/conf/bison_lex.conf +++ b/build/conf/bison_lex.conf @@ -26,6 +26,7 @@ _CPP_BISON_SKELS=\ _BISON_GEN_EXT=.cpp _FLEX_GEN_EXT=.cpp +_BISON_HEADER_SUFFIX=.h _BISON_HEADER= _BISON_PP= _FLEX_TOOL= @@ -33,8 +34,8 @@ _FLEX_TOOL_DIR= _FLEX_HEADER= when ($_BISON_FLEX_SET_DEFAULTS == "yes") { - _BISON_HEADER=--defines=${nopath;noext;output;main;addincl;norel;suf=.h:SRC} - _BISON_PP=$YMAKE_PYTHON ${input:"build/scripts/preprocess.py"} $_ADD_HIDDEN_INPUTS($_CPP_BISON_SKELS) ${nopath;noext;tmp:SRC.h} + _BISON_HEADER=--defines=${nopath;noext;output;main;addincl;norel;suf=$_BISON_HEADER_SUFFIX:SRC} + _BISON_PP=$YMAKE_PYTHON ${input:"build/scripts/preprocess.py"} $_ADD_HIDDEN_INPUTS($_CPP_BISON_SKELS) ${nopath;noext;tmp;suf=$_BISON_HEADER_SUFFIX:SRC} _FLEX_TOOL=${tool:"contrib/tools/flex-old"} _FLEX_TOOL_DIR=contrib/tools/flex-old _FLEX_HEADER= @@ -88,7 +89,10 @@ macro FLEX_GEN_CPP() { ### ### Use SUFF (including extension) to name Bison defines header file. The default is just `.h`. macro BISON_HEADER(Suffix) { - SET(_BISON_HEADER --defines=\${nopath;noext;output;main;addincl;norel;suf=$Suffix:SRC}) + SET(_BISON_HEADER_SUFFIX $Suffix) + SET(_BISON_HEADER --defines=\${nopath;noext;output;main;addincl;norel;suf=$_BISON_HEADER_SUFFIX:SRC}) + SET(_BISON_PP $YMAKE_PYTHON \${input:"build/scripts/preprocess.py"} $_ADD_HIDDEN_INPUTS($_CPP_BISON_SKELS) \${nopath;noext;tmp;suf=$_BISON_HEADER_SUFFIX:SRC}) + } ### @usage: BISON_NO_HEADER() |