diff options
author | neksard <neksard@yandex-team.ru> | 2022-02-10 16:45:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:23 +0300 |
commit | 8f7cf138264e0caa318144bf8a2c950e0b0a8593 (patch) | |
tree | 83bf5c8c8047c42d8475e6095df90ccdc3d1b57f /build/ymake.core.conf | |
parent | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (diff) | |
download | ydb-8f7cf138264e0caa318144bf8a2c950e0b0a8593.tar.gz |
Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r-- | build/ymake.core.conf | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 081833998b..1e890229fc 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -276,11 +276,11 @@ PERL_DEFAULT_PEERDIR=yes # tag:perl-specific PERLSUFFIX=-csuffix .cpp -PERLOUTPUT=${stdout;output:SRC.cpp} -when ($PERLC == "yes") { - PERLSUFFIX=-csuffix .c - PERLOUTPUT=${stdout;output:SRC.c} -} +PERLOUTPUT=${stdout;output:SRC.cpp} +when ($PERLC == "yes") { + PERLSUFFIX=-csuffix .c + PERLOUTPUT=${stdout;output:SRC.c} +} XSUBPPFLAGS= # tag:tool-specific @@ -298,7 +298,7 @@ FML_TOOL=${tool:"tools/relev_fml_codegen"} FML_UNUSED_TOOL=${tool:"tools/relev_fml_unused"} LUA_TOOL=${tool:"tools/lua"} ENUM_PARSER_TOOL=${tool:"tools/enum_parser/enum_parser"} - + # tag:python-specific tag:cython-specific CYTHON_SCRIPT=${input:"${ARCADIA_ROOT}/contrib/tools/cython/cython.py"} RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT @@ -345,42 +345,42 @@ FATAL_ERROR_MODULE=no FATAL_ERROR_MESSAGE= # tag:python-specific -# PYTHON_DISTR={ "default" | "macos-brew" } determine python system supply +# PYTHON_DISTR={ "default" | "macos-brew" } determine python system supply # see build/platform/python/ya.make -PYTHON_DISTR="default" -when ($USE_SYSTEM_PYTHON) { - USE_ARCADIA_PYTHON=no +PYTHON_DISTR="default" +when ($USE_SYSTEM_PYTHON) { + USE_ARCADIA_PYTHON=no select ($USE_SYSTEM_PYTHON) { "2.7" ? { _SYSTEM_PYTHON27=yes - PY_VERSION=2.7 - PY_FRAMEWORK_VERSION=2.7 + PY_VERSION=2.7 + PY_FRAMEWORK_VERSION=2.7 } - "3.4" ? { + "3.4" ? { _SYSTEM_PYTHON34=yes - PY_VERSION=3.4m - PY_FRAMEWORK_VERSION=3.4 - } + PY_VERSION=3.4m + PY_FRAMEWORK_VERSION=3.4 + } "3.5" ? { _SYSTEM_PYTHON35=yes - PY_VERSION=3.5m - PY_FRAMEWORK_VERSION=3.5 + PY_VERSION=3.5m + PY_FRAMEWORK_VERSION=3.5 } "3.6" ? { _SYSTEM_PYTHON36=yes - PY_VERSION=3.6m - PY_FRAMEWORK_VERSION=3.6 - } - "3.7" ? { - _SYSTEM_PYTHON37=yes - PY_VERSION=3.7m - PY_FRAMEWORK_VERSION=3.7 - } - "3.8" ? { - _SYSTEM_PYTHON38=yes - PY_VERSION=3.8 - PY_FRAMEWORK_VERSION=3.8 + PY_VERSION=3.6m + PY_FRAMEWORK_VERSION=3.6 } + "3.7" ? { + _SYSTEM_PYTHON37=yes + PY_VERSION=3.7m + PY_FRAMEWORK_VERSION=3.7 + } + "3.8" ? { + _SYSTEM_PYTHON38=yes + PY_VERSION=3.8 + PY_FRAMEWORK_VERSION=3.8 + } "3.9" ? { _SYSTEM_PYTHON39=yes PY_VERSION=3.9 @@ -394,9 +394,9 @@ when ($USE_SYSTEM_PYTHON) { default ? { FATAL_ERROR_MESSAGE+=invalid USE_SYSTEM_PYTHON value } - } -} - + } +} + # tag:python-specific YMAKE_PYTHON3_PEER=build/platform/python/ymake_python3 YMAKE_PYTHON3=$YMAKE_PYTHON3_RESOURCE_GLOBAL/python3 @@ -1215,14 +1215,14 @@ module _BASE_UNIT: _BARE_UNIT { } } - when ($HARDENING == "yes") { - when ($CLANG) { + when ($HARDENING == "yes") { + when ($CLANG) { CFLAGS+=-fstack-protector-all -D_hardening_enabled_ LDFLAGS+=-z relro -z now -z noexecstack PIE=yes - } - } - + } + } + when ($USE_LTO == "yes") { when ($GCC) { CFLAGS+=-flto -fno-fat-lto-objects @@ -2667,15 +2667,15 @@ module PY_ANY_MODULE: DLL_UNIT { LDFLAGS+= -Wl,-Bsymbolic } - when ($USE_ARCADIA_PYTHON == "no") { - when ($USE_SYSTEM_PYTHON) { + when ($USE_ARCADIA_PYTHON == "no") { + when ($USE_SYSTEM_PYTHON) { PEERDIR+=build/platform/python - } - otherwise { - when ($MSVC == "yes" || $CYGWIN == "yes") { - LDFLAGS+=$PYTHON_LIBRARIES - } - } + } + otherwise { + when ($MSVC == "yes" || $CYGWIN == "yes") { + LDFLAGS+=$PYTHON_LIBRARIES + } + } } # This by now replicates ymake's bahavior. We'll get rid of SONAME setting in ymake and fix this code alltogether @@ -2691,7 +2691,7 @@ module PY_ANY_MODULE: DLL_UNIT { } when ($MSVC == "yes" || $CYGWIN == "yes") { - MODULE_PREFIX= + MODULE_PREFIX= MODULE_SUFFIX=.pyd } otherwise { @@ -5124,12 +5124,12 @@ macro _PYTHON_ADDINCL() { CFLAGS+=-DARCADIA_PYTHON_UNICODE_SIZE=$ARCADIA_PYTHON_UNICODE_SIZE } otherwise { - when ($USE_SYSTEM_PYTHON) { + when ($USE_SYSTEM_PYTHON) { PEERDIR+=build/platform/python - } - otherwise { - CFLAGS+=$PYTHON_INCLUDE - } + } + otherwise { + CFLAGS+=$PYTHON_INCLUDE + } } } @@ -5776,7 +5776,7 @@ macro _SRC("sfdl", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("xs", SRC, SRCFLAGS...) { - .CMD=$PERL_LD_LIBRARY_PATH $PERL $PERL_INCLUDE ${suf=/ExtUtils/xsubpp:PERL_PRIVLIB} -typemap ${suf=/ExtUtils/typemap:PERL_PRIVLIB} $PERLSUFFIX $XSUBPPFLAGS ${SRCFLAGS} ${input:SRC} $PERLOUTPUT ${kv;hide:"p XS"} ${kv;hide:"pc yellow"} + .CMD=$PERL_LD_LIBRARY_PATH $PERL $PERL_INCLUDE ${suf=/ExtUtils/xsubpp:PERL_PRIVLIB} -typemap ${suf=/ExtUtils/typemap:PERL_PRIVLIB} $PERLSUFFIX $XSUBPPFLAGS ${SRCFLAGS} ${input:SRC} $PERLOUTPUT ${kv;hide:"p XS"} ${kv;hide:"pc yellow"} } # tag:src-processing @@ -6297,7 +6297,7 @@ macro BUILDWITH_CYTHON_C(Src, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} -o ${output;tobindir:Src.c} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } - + # tag:python-processing tag:cython tag:internal ### @usage: _BUILDWITH_CYTHON_C_DEP(Src Dep Options...) # internal ### @@ -6556,8 +6556,8 @@ macro LDFLAGS(Flags...) { ### Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC_FLAGS). macro CFLAGS(Flags...) { SET_APPEND_WITH_GLOBAL(USER_CFLAGS $Flags) -} - +} + # tag:flags ### @usage: MASMFLAGS(compiler flags) ### Add the specified flags to the compilation command of .masm files. @@ -7317,16 +7317,16 @@ macro _SRC_yasm(SRC, PREINCLUDES[], SRCFLAGS...) { macro ASM_PREINCLUDE(PREINCLUDES...) { SET_APPEND(YASM_PREINCLUDES_VALUE $PREINCLUDES) } - + # tag:python-specific ### @usage: RUN_PYTHON(Args...) ### ### Version of RUN() macro to invoke Python scripts ### @see: [RUN()](#macro_RUN) macro RUN_PYTHON(Args...) { - SETUP_RUN_PYTHON() - RUN(${PYTHON_BIN} $Args) -} + SETUP_RUN_PYTHON() + RUN(${PYTHON_BIN} $Args) +} ### @usage: RUN_ANTLR(Args...) ### |