diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-08-02 09:47:14 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-08-02 09:59:59 +0300 |
commit | 7d4535be64fde4963aa2ddd389134facac293e87 (patch) | |
tree | a62e08ab207b1a4b2c110abaae19bf08f4a3af7e /build | |
parent | 361db6f916e56c2f127232d0260fcc910f2527b9 (diff) | |
download | ydb-7d4535be64fde4963aa2ddd389134facac293e87.tar.gz |
contrib/tools/bison: Replace patch with environment variable
59fef9fd4f33196d66de3ac1fba18aba86a7f327
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/bison_lex.conf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/conf/bison_lex.conf b/build/conf/bison_lex.conf index 5e3a5418f6..f8bee6b89a 100644 --- a/build/conf/bison_lex.conf +++ b/build/conf/bison_lex.conf @@ -3,6 +3,8 @@ # This specilizes _SRC() macro, so should be imported after generic version definition # Thus uses _ADD_HIDDEN_INPUTS() macro from ymake.core.conf +M4_PATH=contrib/tools/m4 + LEX_FLAGS= BISON_FLAGS=-v @@ -133,7 +135,7 @@ macro USE_OLD_FLEX() { macro _SRC("y", SRC, SRCFLAGS...) { .PEERDIR=build/induced/by_bison - .CMD=${tool:"contrib/tools/bison"} $BISON_FLAGS --m4=${tool:"contrib/tools/m4"} $_BISON_HEADER ${hide:_BISON_GEN_EXT} -o ${nopath;output;suf=$_BISON_GEN_EXT:SRC} ${input:SRC} ${SRCFLAGS} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"} && $_BISON_PP + .CMD=${tool:"contrib/tools/bison"} $BISON_FLAGS ${env:"M4=${tool:M4_PATH}"} $_BISON_HEADER ${hide:_BISON_GEN_EXT} -o ${nopath;output;suf=$_BISON_GEN_EXT:SRC} ${input:SRC} ${SRCFLAGS} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"} && $_BISON_PP .SEM=target_bison_parser PRIVATE ${input:SRC} ${output;nopath;noext;hide;suf=${OBJ_SUF}.o:SRC} ${nopath;noext;output;hide:SRC.h} ${nopath;noext;output;addincl;hide:SRC.h} && set_global_flags BISON_FLAGS $BISON_FLAGS && conan_require_tool m4/1.4.19 && conan_import '"bin, m4* -> ./bin/m4/bin"' && conan_require_tool bison/3.8.2 && conan_import '"bin, bison* -> ./bin/bison/bin"' && conan_import '"res, * -> ./bin/bison/res"' && target_macroses-ITEM && target_macroses-macro target_bison_parser && target_macroses-args PRIVATE ${input:SRC} ${output;nopath;noext;hide;suf=${OBJ_SUF}.o:SRC} ${nopath;noext;output;hide:SRC.h} ${nopath;noext;output;addincl;hide:SRC.h} && platform_vars-BISON_FLAGS ${quo:BISON_FLAGS} && conan-tool_requires m4/1.4.19 && conan-imports 'bin, m4* -> ./bin/m4/bin' && conan-tool_requires bison/3.8.2 && conan-imports 'bin, bison* -> ./bin/bison/bin' && conan-imports 'res, * -> ./bin/bison/res' } |