diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /build/ymake.core.conf | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r-- | build/ymake.core.conf | 398 |
1 files changed, 199 insertions, 199 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 5c7f76fb0d..081833998b 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -21,11 +21,11 @@ SRCDIR= YMAKE=ymake ECHO=echo INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i -CPP_EXT=.cpp +CPP_EXT=.cpp OBJ_SUF= CFLAGS= EXTRA_C_FLAGS= -SFLAGS= +SFLAGS= AUTOCHECK_BALANCING_OPTIONS= SO_OTPUTS=no @@ -318,17 +318,17 @@ ${output_include;hide:"omp.h"} CYTHON_CPP_OUTPUT_INCLUDES=${output_include;hide:"contrib/tools/cython/generated_cpp_headers.h"} # tag:cython-specific -CYTHON_OPTIONS= -when ($OS_LINUX) { - CYTHON_OPTIONS += -E UNAME_SYSNAME=Linux -} -elsewhen ($OS_DARWIN) { - CYTHON_OPTIONS += -E UNAME_SYSNAME=Darwin -} -elsewhen ($OS_WINDOWS) { - CYTHON_OPTIONS += -E UNAME_SYSNAME=Windows -} - +CYTHON_OPTIONS= +when ($OS_LINUX) { + CYTHON_OPTIONS += -E UNAME_SYSNAME=Linux +} +elsewhen ($OS_DARWIN) { + CYTHON_OPTIONS += -E UNAME_SYSNAME=Darwin +} +elsewhen ($OS_WINDOWS) { + CYTHON_OPTIONS += -E UNAME_SYSNAME=Windows +} + when ($USE_LOCAL_SWIG != "yes") { _SWIG_TOOL=${tool:"contrib/tools/swig"} _SWIG_LIBRARY=contrib/tools/swig/Lib @@ -339,8 +339,8 @@ otherwise { _SWIG_LIBRARY=$SWIG_LIBRARY _SWIG_LIBRARY_ABS=$SWIG_LIBRARY } -SWIG_IMPLICIT_INCLUDES = swig.swg go.swg java.swg perl5.swg python.swg - +SWIG_IMPLICIT_INCLUDES = swig.swg go.swg java.swg perl5.swg python.swg + FATAL_ERROR_MODULE=no FATAL_ERROR_MESSAGE= @@ -442,7 +442,7 @@ when ($SANITIZER_TYPE) { ### ### @see https://a.yandex-team.ru/arc/trunk/arcadia/build/scripts/check_config_h.py for exact details macro CHECK_CONFIG_H(Conf) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/check_config_h.py"} ${input;rootrel:Conf} ${output;nopath;noext:Conf.config.cpp} ${kv;hide:"p CH"} ${kv;hide:"pc yellow"} + .CMD=$YMAKE_PYTHON ${input:"build/scripts/check_config_h.py"} ${input;rootrel:Conf} ${output;nopath;noext:Conf.config.cpp} ${kv;hide:"p CH"} ${kv;hide:"pc yellow"} OUTPUT_INCLUDES=$Conf } @@ -611,7 +611,7 @@ macro _PROTO_PLUGIN_ARGS_BASE(Name, Tool, OutParm...) { # tag:proto tag:python-specific macro _ADD_PY_PROTO_OUT(Suf) { - SET_APPEND(PY_PROTO_OUTS \${output;hide;noauto;norel;nopath;noext;suf=$Suf:File}) + SET_APPEND(PY_PROTO_OUTS \${output;hide;noauto;norel;nopath;noext;suf=$Suf:File}) SET_APPEND(PY_PROTO_OUTS_INTERNAL \${output;hide;noauto;norel;nopath;noext;suf=__int__$Suf:File} \${hide;kv:"ext_out_name_for_\${nopath;noext;suf=__int__$Suf:File} \${nopath;noext;suf=$Suf:File}"}) # XXX fix variable expansion in plugins SET(PY_PROTO_SUFFIXES $PY_PROTO_SUFFIXES $Suf) @@ -954,7 +954,7 @@ macro XS_PROTO(File, Dir, Outputs...) { ### ### Produce flatbuf schema out of protobuf description. macro PROTO2FBS(File) { - .CMD=${cwd:BINDIR} ${tool:"contrib/tools/flatc"} -I . -I ${ARCADIA_ROOT} --proto ${input:File} ${output;hide;nopath;noext:File.fbs} ${kv;hide:"p FBS"} ${kv;hide:"pc yellow"} + .CMD=${cwd:BINDIR} ${tool:"contrib/tools/flatc"} -I . -I ${ARCADIA_ROOT} --proto ${input:File} ${output;hide;nopath;noext:File.fbs} ${kv;hide:"p FBS"} ${kv;hide:"pc yellow"} } # tag:proto tag:python-specific @@ -980,7 +980,7 @@ macro _PY_EVLOG_CMD_INTERNAL(File) { # tag:java-specific tag:proto macro _JAVA_EVLOG_CMD(File) { - .CMD=$COPY_CMD ${input:File} ${output;nopath;noext;norel;suf=_ev.proto:File} ${kv;hide:"p EV"} ${kv;hide:"pc yellow"} + .CMD=$COPY_CMD ${input:File} ${output;nopath;noext;norel;suf=_ev.proto:File} ${kv;hide:"p EV"} ${kv;hide:"pc yellow"} .PEERDIR=library/cpp/eventlog/proto } @@ -1105,15 +1105,15 @@ PYTHON2=no PYTHON3=no # tag:python-specific -when (!$ARCADIA_PYTHON_UNICODE_SIZE) { - when ($OS_WINDOWS) { - ARCADIA_PYTHON_UNICODE_SIZE=2 - } - otherwise { - ARCADIA_PYTHON_UNICODE_SIZE=4 - } -} - +when (!$ARCADIA_PYTHON_UNICODE_SIZE) { + when ($OS_WINDOWS) { + ARCADIA_PYTHON_UNICODE_SIZE=2 + } + otherwise { + ARCADIA_PYTHON_UNICODE_SIZE=4 + } +} + ### @usage: _BARE_UNIT # internal ### ### The base of all modules describing default bare minimum for all modules. @@ -1261,10 +1261,10 @@ module _BASE_UNIT: _BARE_UNIT { PEERDIR+=$COMPILER_PLATFORM } - when ($OS_LINUX && $NEED_PLATFORM_PEERDIRS == "yes") { - PEERDIR+=contrib/libs/linux-headers - } - + when ($OS_LINUX && $NEED_PLATFORM_PEERDIRS == "yes") { + PEERDIR+=contrib/libs/linux-headers + } + # Adding PEERDIR from trigger doesn't always work. In this case it # cause troubles in contrib/libs/libc_compat/ubuntu_14 under musl # Workaround this issue by setting variable with PEERDIR in trigger @@ -1289,7 +1289,7 @@ module _BASE_UNIT: _BARE_UNIT { } when ($MUSL == "yes") { - CFLAGS += -D_musl_ + CFLAGS += -D_musl_ LINK_DYN_LIB_FLAGS += --musl LINK_SCRIPT_EXE_FLAGS += --musl PEERDIR+=contrib/libs/musl/include @@ -1332,8 +1332,8 @@ module _BASE_UNIT: _BARE_UNIT { } } - _REGISTER_NO_CHECK_IMPORTS() - + _REGISTER_NO_CHECK_IMPORTS() + DEFAULT(PACKAGE_PREFIX_ARGS) DEFAULT(BYACC_FLAGS -v) @@ -1384,26 +1384,26 @@ LINK_ADDITIONAL_SECTIONS= LINK_ADDITIONAL_SECTIONS_COMMAND= when ($COMMON_LINK_SETTINGS == "yes") { - when ($_LINKER_ID == "lld" || $_LINKER_ID == "gold") { - LDFLAGS += -Wl,--gdb-index - } - + when ($_LINKER_ID == "lld" || $_LINKER_ID == "gold") { + LDFLAGS += -Wl,--gdb-index + } + when ($EMBED_LINKER_CREF == "yes") { LDFLAGS+=-Wl,--cref ${tmp;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_cref=${tmp;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} - } + } elsewhen ($DUMP_LINKER_CREF == "yes") { LDFLAGS+=-Wl,--cref ${output;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle } - + when ($EMBED_LINKER_MAP == "yes") { LDFLAGS+=-Wl,-Map=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_map.${_LINKER_ID}=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} - } + } elsewhen ($DUMP_LINKER_MAP == "yes") { LDFLAGS+=-Wl,-Map=${output;rootrel;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} } - + when ($USE_MKL == "yes") { NOPLATFORM=yes } @@ -1493,9 +1493,9 @@ when ($COMMON_LINK_SETTINGS == "yes") { when ($ALLOCATOR == "SYSTEM") { PEERDIR+=library/cpp/malloc/system } - when ($WERROR != "no") { + when ($WERROR != "no") { when ($WERROR_MODE == "all" || ($WERROR_MODE == "compiler_specific" && $WERROR == "yes")) { - C_WARNING_OPTS += $WERROR_FLAG + C_WARNING_OPTS += $WERROR_FLAG } } @@ -1627,15 +1627,15 @@ module _BASE_PROGRAM: _LINK_UNIT { PEERDIR+=contrib/libs/asmlib } - when ($MUSL == "yes") { + when ($MUSL == "yes") { when ($MUSL_LITE == "yes") { PEERDIR += contrib/libs/musl } otherwise { PEERDIR += contrib/libs/musl/full } - } - + } + DEFAULT(CPU_CHECK yes) when ($USE_SSE4 != "yes" || $NOUTIL == "yes" || $ALLOCATOR == "FAKE") { CPU_CHECK = no @@ -1912,7 +1912,7 @@ module FUZZ: _BASE_PROGRAM { PEERDIR+=$LIBFUZZER_PATH } when ($USE_AFL == "yes") { - PEERDIR+=$LIBFUZZER_PATH/afl + PEERDIR+=$LIBFUZZER_PATH/afl } when (!$SANITIZER_TYPE || $SANITIZER_TYPE == "no") { @@ -2390,9 +2390,9 @@ module _LIBRARY: _BASE_UNIT { } } - when ($WERROR != "no") { + when ($WERROR != "no") { when ($WERROR_MODE == "all" || ($WERROR_MODE == "compiler_specific" && $WERROR == "yes")) { - C_WARNING_OPTS += $WERROR_FLAG + C_WARNING_OPTS += $WERROR_FLAG } } @@ -2600,7 +2600,7 @@ module DLL_UNIT: _LINK_UNIT { .ALLOWED=WHOLE_ARCHIVE DYNAMIC_LINK=yes ALLOCATOR(FAKE) - SET(MODULE_TYPE DLL) + SET(MODULE_TYPE DLL) SET(MODULE_TAG DLL) SET(MODULE_LANG CPP) ADD_CLANG_TIDY() @@ -2817,11 +2817,11 @@ module DLL: DLL_UNIT { ###} } -### DLL_TOOL is a DLL that can be used as a LD_PRELOAD tool. -module DLL_TOOL: DLL { - # ymake resolves only program nodes as tools. - .NODE_TYPE=Program -} +### DLL_TOOL is a DLL that can be used as a LD_PRELOAD tool. +module DLL_TOOL: DLL { + # ymake resolves only program nodes as tools. + .NODE_TYPE=Program +} ### @usage: SO_PROGRAM(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) ### @@ -2842,8 +2842,8 @@ module SO_PROGRAM: DLL { } } -DLL_PROXY_CMD_MF=$GENERATE_MF && $COPY_CMD $AUTO_INPUT $TARGET - +DLL_PROXY_CMD_MF=$GENERATE_MF && $COPY_CMD $AUTO_INPUT $TARGET + # tag:internal ### @usage: DEV_DLL_PROXY() # internal ### @@ -3360,7 +3360,7 @@ macro DOCS_INCLUDE_SOURCES(Args...) { } # tag:python-specific -PY_NAMESPACE_VALUE= +PY_NAMESPACE_VALUE= # tag:python-specific ### @usage: PY_NAMESPACE(prefix) @@ -3369,8 +3369,8 @@ PY_NAMESPACE_VALUE= ### Especially suitable in PROTO_LIBRARY where Python sources are generated and there is no PY_SRCS to place NAMESPACE parameter. macro PY_NAMESPACE(Arg) { SET(PY_NAMESPACE_VALUE $Arg) -} - +} + # tag:internal ### @usage: _SRCS_NO_GLOBAL(files...) # internal ### @@ -4110,21 +4110,21 @@ module PY3_LIBRARY: _PY3_LIBRARY { module _BASE_PY_PROGRAM: _BASE_PROGRAM { .CMD=PY_PROGRAM_LINK_EXE _ARCADIA_PYTHON_ADDINCL() - + when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") { NO_CHECK_IMPORTS_FOR_VALUE= } - ADD_CHECK_PY_IMPORTS() + ADD_CHECK_PY_IMPORTS() when ($NO_PYTHON_INCLS != "yes") { - PEERDIR += contrib/libs/python + PEERDIR += contrib/libs/python } when ($USE_ARCADIA_PYTHON == "yes") { - PEERDIR += library/python/runtime/main - PEERDIR += contrib/python/subprocess32 - when ($PYTHON_SQLITE3 != "no") { - PEERDIR += contrib/tools/python/src/Modules/_sqlite - } + PEERDIR += library/python/runtime/main + PEERDIR += contrib/python/subprocess32 + when ($PYTHON_SQLITE3 != "no") { + PEERDIR += contrib/tools/python/src/Modules/_sqlite + } } when ($PYTHON_COVERAGE == "yes") { PEERDIR+=library/python/coverage @@ -4172,14 +4172,14 @@ module _BASE_PY3_PROGRAM: _BASE_PROGRAM { .CMD=PY3_PROGRAM_LINK_EXE _ARCADIA_PYTHON3_ADDINCL() PEERDIR(library/python/runtime_py3/main) - when ($PYTHON_SQLITE3 != "no") { - PEERDIR += contrib/tools/python3/src/Modules/_sqlite - } + when ($PYTHON_SQLITE3 != "no") { + PEERDIR += contrib/tools/python3/src/Modules/_sqlite + } when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") { NO_CHECK_IMPORTS_FOR_VALUE= } - ADD_CHECK_PY_IMPORTS() + ADD_CHECK_PY_IMPORTS() when ($ARCH_PPC64LE == "yes") { _MY_ALLOCATOR=SYSTEM @@ -5121,7 +5121,7 @@ macro _PYTHON_ADDINCL() { SET(PYTHON3 no) when ($USE_ARCADIA_PYTHON == "yes") { ADDINCL+=GLOBAL contrib/libs/python/Include - CFLAGS+=-DARCADIA_PYTHON_UNICODE_SIZE=$ARCADIA_PYTHON_UNICODE_SIZE + CFLAGS+=-DARCADIA_PYTHON_UNICODE_SIZE=$ARCADIA_PYTHON_UNICODE_SIZE } otherwise { when ($USE_SYSTEM_PYTHON) { @@ -5761,17 +5761,17 @@ macro _SRC("fml", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("fml2", SRC, SRCFLAGS...) { - .CMD=$FML_TOOL $CHECKFLAG -b -o ${output;nopath;noext:SRC.fml.inc} -2 -O ${output;nopath;noext:SRC.fml.cpp} -T ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} + .CMD=$FML_TOOL $CHECKFLAG -b -o ${output;nopath;noext:SRC.fml.inc} -2 -O ${output;nopath;noext:SRC.fml.cpp} -T ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} } # tag:src-processing macro _SRC("fml3", SRC, SRCFLAGS...) { - .CMD=$FML_TOOL $CHECKFLAG -b -o ${output;nopath;noext:SRC.fml.inc} -3 -O ${output;nopath;noext:SRC.fml.cpp} -L ${input;nopath;noext:SRC.list} -P ${nopath;noext:SRC} -T ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} + .CMD=$FML_TOOL $CHECKFLAG -b -o ${output;nopath;noext:SRC.fml.inc} -3 -O ${output;nopath;noext:SRC.fml.cpp} -L ${input;nopath;noext:SRC.list} -P ${nopath;noext:SRC} -T ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} } # tag:src-processing macro _SRC("sfdl", SRC, SRCFLAGS...) { - .CMD=$CXX_COMPILER $C_FLAGS_PLATFORM $CXXFLAGS $SFDL_FLAG ${SRCFLAGS} ${input:SRC} && ${tool:"tools/calcstaticopt"} -i ${tmp:SRC.tmp} -a $ARCADIA_ROOT ${output;stdout;nopath;noext;defext=.inc:SRC} ${kv;hide:"p SF"} ${kv;hide:"pc yellow"} $TOOLCHAIN_ENV + .CMD=$CXX_COMPILER $C_FLAGS_PLATFORM $CXXFLAGS $SFDL_FLAG ${SRCFLAGS} ${input:SRC} && ${tool:"tools/calcstaticopt"} -i ${tmp:SRC.tmp} -a $ARCADIA_ROOT ${output;stdout;nopath;noext;defext=.inc:SRC} ${kv;hide:"p SF"} ${kv;hide:"pc yellow"} $TOOLCHAIN_ENV } # tag:src-processing @@ -5781,7 +5781,7 @@ macro _SRC("xs", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("y", SRC, SRCFLAGS...) { - # .CMD=${tool:"contrib/tools/byacc"} $BYACC_FLAGS ${nopath;noext;output:SRC.cpp} ${input:SRC} ${nopath;noext;hide;output;addincl:SRC.h} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"} + # .CMD=${tool:"contrib/tools/byacc"} $BYACC_FLAGS ${nopath;noext;output:SRC.cpp} ${input:SRC} ${nopath;noext;hide;output;addincl:SRC.h} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"} .CMD=${tool:"contrib/tools/bison/bison"} $BISON_FLAGS --m4=${tool:"contrib/tools/bison/m4"} -d -o ${nopath;noext;output;main;hide:SRC.h} ${nopath;noext;output:SRC.cpp} ${input:SRC} ${SRCFLAGS} && $YMAKE_PYTHON ${input:"build/scripts/preprocess.py"} $_ADD_HIDDEN_INPUTS($CPP_BISON_SKELS) ${nopath;noext;output;addincl:SRC.h} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"} } @@ -5792,7 +5792,7 @@ macro _SRC("ypp", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("gperf", SRC, SRCFLAGS...) { - .CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/gperf"} $GP_FLAGS ${SRCFLAGS} ${pre=-Nin_;suf=_set;nopath;noallext:SRC} ${input:SRC} ${output;stdout;nopath;noext;defext=.gperf.cpp:SRC} ${kv;hide:"p GP"} ${kv;hide:"pc yellow"} + .CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/gperf"} $GP_FLAGS ${SRCFLAGS} ${pre=-Nin_;suf=_set;nopath;noallext:SRC} ${input:SRC} ${output;stdout;nopath;noext;defext=.gperf.cpp:SRC} ${kv;hide:"p GP"} ${kv;hide:"pc yellow"} } # tag:src-processing @@ -5834,7 +5834,7 @@ macro _SRC("lpp", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("pln", SRC, SRCFLAGS...) { - .CMD=$FML_TOOL -b -o ${output;pre=pln.;nopath;noext:SRC.cpp} -f ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} + .CMD=$FML_TOOL -b -o ${output;pre=pln.;nopath;noext:SRC.cpp} -f ${input:SRC} ${SRCFLAGS} ${kv;hide:"p FM"} ${kv;hide:"pc yellow"} } # tag:src-processing @@ -5875,7 +5875,7 @@ macro _SRC("pyx", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("in", SRC, SRCFLAGS...) { - .CMD=$CONFIGURE_FILE(${SRC} ${nopath;noext:SRC}) + .CMD=$CONFIGURE_FILE(${SRC} ${nopath;noext:SRC}) } # tag:src-processing @@ -5884,10 +5884,10 @@ macro _SRC("sc", SRC, SRCFLAGS...) { } # tag:src-processing -macro _SRC("ssqls", SRC, SRCFLAGS...) { - .CMD=${tool:"metrika/core/tools/ssqls"} ${input;notransformbuilddir:SRC} -S $ARCADIA_ROOT -B $ARCADIA_BUILD_ROOT $SRCFLAGS ${output;noext;hide:SRC.cpp} ${output;noext;hide:SRC.h} ${kv;hide:"p SS"} ${kv;hide:"pc yellow"} -} - +macro _SRC("ssqls", SRC, SRCFLAGS...) { + .CMD=${tool:"metrika/core/tools/ssqls"} ${input;notransformbuilddir:SRC} -S $ARCADIA_ROOT -B $ARCADIA_BUILD_ROOT $SRCFLAGS ${output;noext;hide:SRC.cpp} ${output;noext;hide:SRC.h} ${kv;hide:"p SS"} ${kv;hide:"pc yellow"} +} + # tag:src-processing macro _SRC("f", SRC, SRCFLAGS...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/f2c.py"} -t ${tool:"contrib/tools/f2c"} -c ${input:SRC} -o ${output:SRC.c} ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p FT"} ${kv;hide:"pc light-green"} @@ -6287,8 +6287,8 @@ macro BUILDWITH_CYTHON_CPP(Src, Options...) { macro _BUILDWITH_CYTHON_CPP_DEP(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} --cplus ${CYTHON_CPP_OUTPUT_INCLUDES} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;tobindir:Src.cpp} $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 ### @usage: BUILDWITH_CYTHON_C(Src Options...) ### @@ -6306,50 +6306,50 @@ macro BUILDWITH_CYTHON_C(Src, Options...) { macro _BUILDWITH_CYTHON_C_DEP(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -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_H(Src Dep Options...) # internal -### -### BUILDWITH_CYTHON_C without .pyx infix and with cdef public .h file. +### +### BUILDWITH_CYTHON_C without .pyx infix and with cdef public .h file. macro _BUILDWITH_CYTHON_C_H(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;noext;tobindir:Src.c} ${output;hide;addincl;noext;tobindir:Src.h} $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_API_H(Src Dep Options...) # internal -### -### BUILDWITH_CYTHON_C_H with cdef api _api.h file. +### +### BUILDWITH_CYTHON_C_H with cdef api _api.h file. macro _BUILDWITH_CYTHON_C_API_H(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;noext;tobindir:Src.c} ${output;hide;addincl;noext;tobindir:Src.h} ${output;hide;addincl;noext;defext=_api.h;tobindir:Src} $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:internal -### @usage: _SWIG_PYTHON_CPP(Src, DstSubPrefix) # internal -### -### Run swig on Src to produce DstSubPrefix.py and DstSubPrefix_swg.cpp that -### provides DstSubPrefix_swg python module. -macro _SWIG_PYTHON_CPP(Src, DstSubPrefix) { +### @usage: _SWIG_PYTHON_CPP(Src, DstSubPrefix) # internal +### +### Run swig on Src to produce DstSubPrefix.py and DstSubPrefix_swg.cpp that +### provides DstSubPrefix_swg python module. +macro _SWIG_PYTHON_CPP(Src, DstSubPrefix) { .CMD=$_SWIG_TOOL -I$ARCADIA_BUILD_ROOT -I$ARCADIA_ROOT -I$_SWIG_LIBRARY_ABS/python -I$_SWIG_LIBRARY_ABS -c++ -python -module ${nopath:DstSubPrefix} -interface ${nopath;suf=_swg:DstSubPrefix} -o ${output;suf=.swg.cpp:DstSubPrefix} ${input:Src} ${output;noauto;hide;suf=.py:DstSubPrefix} ${kv;hide:"p SW"} ${kv;hide:"pc yellow"} ADDINCL(FOR swig $_SWIG_LIBRARY/python FOR swig $_SWIG_LIBRARY) -} - +} + # tag:python-processing tag:internal -### @usage: _SWIG_PYTHON_C(Src, DstSubPrefix) # internal -### -### Like _SWIG_PYTHON_CPP but generate DstSubPrefix_swg.c. -macro _SWIG_PYTHON_C(Src, DstSubPrefix) { +### @usage: _SWIG_PYTHON_C(Src, DstSubPrefix) # internal +### +### Like _SWIG_PYTHON_CPP but generate DstSubPrefix_swg.c. +macro _SWIG_PYTHON_C(Src, DstSubPrefix) { .CMD=$_SWIG_TOOL -I$ARCADIA_BUILD_ROOT -I$ARCADIA_ROOT -I$_SWIG_LIBRARY_ABS/python -I$_SWIG_LIBRARY_ABS -python -module ${nopath:DstSubPrefix} -interface ${nopath;suf=_swg:DstSubPrefix} -o ${output;suf=.swg.c:DstSubPrefix} ${input:Src} ${output;noauto;hide;suf=.py:DstSubPrefix} ${kv;hide:"p SW"} ${kv;hide:"pc yellow"} ADDINCL(FOR swig $_SWIG_LIBRARY/python FOR swig $_SWIG_LIBRARY) -} - +} + ### @usage: BUILDWITH_RAGEL6(Src Options...) ### ### Compile .rl file using Ragel6. macro BUILDWITH_RAGEL6(Src, Options...) { - .CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/ragel6"} $RAGEL6_FLAGS ${Options} -I${ARCADIA_ROOT} -o ${output;nopath;noext;defext=.rl6.cpp:Src} ${input:Src} ${kv;hide:"p R6"} ${kv;hide:"pc yellow"} + .CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/ragel6"} $RAGEL6_FLAGS ${Options} -I${ARCADIA_ROOT} -o ${output;nopath;noext;defext=.rl6.cpp:Src} ${input:Src} ${kv;hide:"p R6"} ${kv;hide:"pc yellow"} } # tag:python-processing tag:internal @@ -6441,11 +6441,11 @@ macro ARCHIVE_BY_KEYS(NAME="", KEYS="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Fi BUILDVERSION_SCRIPT=build/scripts/build_info_gen.py SVNVERSION_JAVA_MARKER=output-java-class SVNVERSION_GO_MARKER=output-go -VCS_C_OBJ=$BINDIR/__vcs_version__.c$OBJECT_SUF -VCS_C_OBJ_RR=$MODDIR/__vcs_version__.c$OBJECT_SUF -VCS_C=$BINDIR/__vcs_version__.c -VCS_GO=$BINDIR/__vcs_version__.go -VCS_JAVA=$BINDIR/__vcs_version__.mf +VCS_C_OBJ=$BINDIR/__vcs_version__.c$OBJECT_SUF +VCS_C_OBJ_RR=$MODDIR/__vcs_version__.c$OBJECT_SUF +VCS_C=$BINDIR/__vcs_version__.c +VCS_GO=$BINDIR/__vcs_version__.go +VCS_JAVA=$BINDIR/__vcs_version__.mf VCS_INFO_DISABLE_CACHE__NO_UID__= YASM_DEBUG_INFO_DISABLE_CACHE__NO_UID__= CL_DEBUG_INFO_DISABLE_CACHE__NO_UID__= @@ -6588,14 +6588,14 @@ macro CUDA_NVCC_FLAGS(Flags...) { } # tag:flags -### @usage: NVCC_DEVICE_LINK(file.cu...) -### Run nvcc --device-link on objects compiled from srcs with --device-c. -### This generates a stub object devlink.o that supplies missing pieces for the -### host linker to link relocatable device objects into the final executable. -macro NVCC_DEVICE_LINK(Srcs...) { - .CMD=$NVCC $NVCC_FLAGS -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:"devlink"} -dlink ${input;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:Srcs} ${kv;hide:"p DL"} ${kv;hide:"pc light-blue"} -} - +### @usage: NVCC_DEVICE_LINK(file.cu...) +### Run nvcc --device-link on objects compiled from srcs with --device-c. +### This generates a stub object devlink.o that supplies missing pieces for the +### host linker to link relocatable device objects into the final executable. +macro NVCC_DEVICE_LINK(Srcs...) { + .CMD=$NVCC $NVCC_FLAGS -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:"devlink"} -dlink ${input;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:Srcs} ${kv;hide:"p DL"} ${kv;hide:"pc light-blue"} +} + ### @usage: STRIP() ### Strip debug info from a PROGRAM, DLL or TEST. ### This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. @@ -6716,7 +6716,7 @@ macro USE_UTIL() { ### @usage: NO_JOIN_SRC() # deprecated, does-nothing ### This macro currently does nothing. This is default behavior which cannot be overridden at module level. macro NO_JOIN_SRC() { - ENABLE(UNUSED_MACRO) + ENABLE(UNUSED_MACRO) } # tag:deprecated @@ -6785,7 +6785,7 @@ macro _LUAJIT_21_OBJDUMP(Src, OUT="") { } macro _MX_BIN_TO_INFO(Src) { - .CMD=${tool:"tools/mx_bin2info"} ${input:Src} ${output;nopath;noext;noauto:Src.info} ${kv;hide:"p MX"} ${kv;hide:"pc yellow"} + .CMD=${tool:"tools/mx_bin2info"} ${input:Src} ${output;nopath;noext;noauto:Src.info} ${kv;hide:"p MX"} ${kv;hide:"pc yellow"} } MX_GEN_TABLE_INCLS=${output_include;hide:"yabs_mx_calc_table.h"} \ @@ -6970,24 +6970,24 @@ macro SYMLINK(From, To) { } ### @usage: RUN_PROGRAM(tool_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) -### -### Run a program from arcadia. -### These macros are similar: RUN_PROGRAM, LUA, PYTHON. -### -### Parameters: -### - tool_path - Path to the directory of the tool. -### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -### - CWD dir - Absolute path of the working directory. -### - ENV key=value... - Environment variables. -### - TOOL tools... - Auxiliary tool directories. +### +### Run a program from arcadia. +### These macros are similar: RUN_PROGRAM, LUA, PYTHON. +### +### Parameters: +### - tool_path - Path to the directory of the tool. +### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +### - CWD dir - Absolute path of the working directory. +### - ENV key=value... - Environment variables. +### - TOOL tools... - Auxiliary tool directories. ### - IN inputs... - Input files -### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. -### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. +### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. +### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. ### - REQUIREMENTS - Override default requirements for CPU and RAM -### -### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or -### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. +### +### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or +### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. ### Note that Tool is always built for the host platform, so be careful to provide that tool can be built for all Arcadia major host platforms (Linux, MacOS and Windows). macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { .CMD=${cwd:CWD} ${env:ENV} ${tool:Tool} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PR"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} @@ -6996,23 +6996,23 @@ macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{t # tag:lua-specific ### @usage: LUA(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...][ REQUIREMENTS reqs]) ### -### Run a lua script. -### These macros are similar: RUN_PROGRAM, LUA, PYTHON. +### Run a lua script. +### These macros are similar: RUN_PROGRAM, LUA, PYTHON. ### -### Parameters: +### Parameters: ### - script_path - Path to the script.3 -### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -### - CWD dir - Absolute path of the working directory. -### - ENV key=value... - Environment variables. -### - TOOL tools... - Auxiliary tool directories. -### - IN inputs... - Input files. -### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. -### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. +### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +### - CWD dir - Absolute path of the working directory. +### - ENV key=value... - Environment variables. +### - TOOL tools... - Auxiliary tool directories. +### - IN inputs... - Input files. +### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. +### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. ### - REQUIREMENTS - Override default requirements for CPU and RAM -### -### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or -### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. +### +### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or +### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. macro LUA(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { .CMD=${cwd:CWD} ${env:ENV} $LUA_TOOL ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p LU"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} } @@ -7020,23 +7020,23 @@ macro LUA(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{too # tag:python-specific ### @usage: PYTHON(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) ### -### Run a python script with $(PYTHON)/python built from devtools/huge_python. -### These macros are similar: RUN_PROGRAM, LUA, PYTHON. -### -### Parameters: -### - script_path - Path to the script. -### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -### - CWD dir - Absolute path of the working directory. -### - ENV key=value... - Environment variables. -### - TOOL tools... - Auxiliary tool directories. -### - IN inputs... - Input files. -### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. -### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. +### Run a python script with $(PYTHON)/python built from devtools/huge_python. +### These macros are similar: RUN_PROGRAM, LUA, PYTHON. +### +### Parameters: +### - script_path - Path to the script. +### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +### - CWD dir - Absolute path of the working directory. +### - ENV key=value... - Environment variables. +### - TOOL tools... - Auxiliary tool directories. +### - IN inputs... - Input files. +### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. +### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. ### - REQUIREMENTS - Override default requirements for CPU and RAM -### -### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or -### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. +### +### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or +### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. macro PYTHON(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} } @@ -7045,21 +7045,21 @@ macro PYTHON(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{ macro _RUN_JAVA(IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], TOOL[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], HIDE_OUTPUT?"stderr2stdout":"stdout2stderr", REQUIREMENTS[], Args...) { PEERDIR(build/platform/java/jdk $JDK_RESOURCE_PEERDIR) .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input;pre=build/scripts/:HIDE_OUTPUT.py} $JDK_RESOURCE/bin/java $Args ${tool;hide:TOOL} ${input;hide:IN} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} -} - +} + ### @usage: FROM_SANDBOX([FILE] resource_id [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE] [OUTPUT_INCLUDES <include files>]) ### -### Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable. +### Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable. ### You may specify extra dependencies that output files bring using OUTPUT_INCLUDES. The change of these may e.g. lead to recompilation of .cpp files extracted from resource. ### If there is no default processing for OUT files or you need process them specially use OUT_NOAUTO instead of OUT. ### ### It is disallowed to specify directory as OUT/OUT_NOAUTO since all outputs of commands shall be known to build system. ### -### RENAME renames files to the corresponding OUT and OUT_NOAUTO outputs: -### FROM_SANDBOX(resource_id RENAME in_file1 in_file2 OUT out_file1 out_file2 out_file3) -### FROM_SANDBOX(resource_id RENAME in_file1 OUT out_file1 RENAME in_file2 OUT out_file2) -### FROM_SANDBOX(FILE resource_id RENAME resource_file OUT out_name) -### +### RENAME renames files to the corresponding OUT and OUT_NOAUTO outputs: +### FROM_SANDBOX(resource_id RENAME in_file1 in_file2 OUT out_file1 out_file2 out_file3) +### FROM_SANDBOX(resource_id RENAME in_file1 OUT out_file1 RENAME in_file2 OUT out_file2) +### FROM_SANDBOX(FILE resource_id RENAME resource_file OUT out_name) +### ### RENAME RESOURCE allows to rename the resource without specifying its file name. ### ### If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and @@ -7070,11 +7070,11 @@ macro FROM_SANDBOX(Id, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], F ADD_CHECK(check.resource $Id) } -### @usage: FROM_MDS([FILE] key [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) +### @usage: FROM_MDS([FILE] key [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) ### -### Download resource from MDS with the specified key and process like [FROM_SANDBOX()](#macro_FROM_SANDBOX). -macro FROM_MDS(Key, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], FILE?"--copy-to-dir":"--untar-to", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"") { - .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_mds.py"} --key $Key $FILE $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:"network:full"} ${kv;hide:"p MD"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} +### Download resource from MDS with the specified key and process like [FROM_SANDBOX()](#macro_FROM_SANDBOX). +macro FROM_MDS(Key, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], FILE?"--copy-to-dir":"--untar-to", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"") { + .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_mds.py"} --key $Key $FILE $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:"network:full"} ${kv;hide:"p MD"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} ADD_CHECK(check.mds $Key) } @@ -7108,7 +7108,7 @@ macro FROM_ARCHIVE(Src, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], } when ($MSVC == "yes") { - C_AS_CXX_FLAGS=/TP /std:c++17 + C_AS_CXX_FLAGS=/TP /std:c++17 } otherwise { C_AS_CXX_FLAGS=-x c++ -std=c++17 @@ -7135,11 +7135,11 @@ macro NO_DEBUG_INFO() { ### ### Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md macro CTEMPLATE_VARNAMES(File) { - .CMD=${tool:"contrib/libs/ctemplate/make_tpl_varnames_h"} -f ${output;addincl;nopath;noallext:File.varnames.h} ${input:File} + .CMD=${tool:"contrib/libs/ctemplate/make_tpl_varnames_h"} -f ${output;addincl;nopath;noallext:File.varnames.h} ${input:File} } LLVM_OPTS= -CLANG_ROOT=$CLANG_RESOURCE_GLOBAL +CLANG_ROOT=$CLANG_RESOURCE_GLOBAL ### @usage: GENERATED_SRCS(srcs... PARSE_META_FROM cpp_srcs... [OUTPUT_INCLUDES output_includes...] [OPTIONS]) ### @@ -7165,34 +7165,34 @@ CLANG_ROOT=$CLANG_RESOURCE_GLOBAL ### More information will be available (eventually:) here: https://wiki.yandex-team.ru/Users/denisk/codegenerator/ macro GENERATED_SRCS(PARSE_META_FROM{input}[], OUTPUT_INCLUDES[], OPTIONS[], TEMPLATES...) { .CMD=${tool:"market/tools/code_generator"} --cpp-file ${input:PARSE_META_FROM} --templates-dir / ${ARCADIA_ROOT} --templates ${input:TEMPLATES.markettemplate} --generated-files ${output:TEMPLATES} ${output_include;hide:OUTPUT_INCLUDES} ${output_include;hide:PARSE_META_FROM} --arcadia-root ${ARCADIA_ROOT} --arcadia-build-root ${ARCADIA_BUILD_ROOT} --clang-root $CLANG_ROOT ${OPTIONS} -- $C_FLAGS_PLATFORM $CXXFLAGS ${pre=-I:_C__INCLUDE} -std=c++17 -Wno-unknown-warning-option -Wno-unused-parameter -Wno-undefined-inline -Wno-undefined-internal -Wno-unused-function $LLVM_OPTS -fno-lto - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: CLANG_EMIT_AST_CXX(Input Output Opts...) ### -### Emit Clang AST from .cpp file. CXXFLAGS and LLVM_OPTS are passed in, while CFLAGS and C_FLAGS_PLATFORM are not. +### Emit Clang AST from .cpp file. CXXFLAGS and LLVM_OPTS are passed in, while CFLAGS and C_FLAGS_PLATFORM are not. ### Note: Output name is used as is, no extension added. macro CLANG_EMIT_AST_CXX(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang++ ${pre=-I:_C__INCLUDE} $CXXFLAGS -Wno-unknown-warning-option $LLVM_OPTS -std=c++17 -fno-lto -emit-ast -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p ST"} ${kv;hide:"pc light-green"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: LLVM_COMPILE_CXX(Input Output Opts...) ### -### Emit LLVM bytecode from .cpp file. BC_CXXFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. +### Emit LLVM bytecode from .cpp file. BC_CXXFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. ### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_CXX(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang++ ${pre=-I:_C__INCLUDE} $BC_CXXFLAGS $C_FLAGS_PLATFORM -Wno-unknown-warning-option $LLVM_OPTS -std=c++17 -fno-lto -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: LLVM_COMPILE_C(Input Output Opts...) ### -### Emit LLVM bytecode from .c file. BC_CFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. +### Emit LLVM bytecode from .c file. BC_CFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. ### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_C(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang ${pre=-I:_C__INCLUDE} $BC_CFLAGS $C_FLAGS_PLATFORM $LLVM_OPTS -fno-lto -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: BPF(Input Output Opts...) @@ -7219,7 +7219,7 @@ macro BPF_STATIC(Input, Output, Opts...) { ### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_LL(Input, Output, Opts...) { .CMD=$CLANG_ROOT/bin/llvm-as ${input:Input} -o ${output;noauto:Output} ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: LLVM_LINK(Output Inputs...) @@ -7228,7 +7228,7 @@ macro LLVM_COMPILE_LL(Input, Output, Opts...) { ### Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. macro LLVM_LINK(Output, Inputs...) { .CMD=$CLANG_ROOT/bin/llvm-link ${input:Inputs} -o ${output;noauto:Output} ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-red"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } ### @usage: LLVM_OPT(Input Output Opts...) @@ -7237,7 +7237,7 @@ macro LLVM_LINK(Output, Inputs...) { ### Note: Output name is used as is, no extension added. macro LLVM_OPT(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/llvm_opt_wrapper.py"} $CLANG_ROOT/bin/opt ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p OP"} ${kv;hide:"pc yellow"} - PEERDIR(build/platform/clang) + PEERDIR(build/platform/clang) } when ($NO_DEBUGINFO == "yes") { @@ -8565,7 +8565,7 @@ module GO_PROGRAM: _GO_BASE_UNIT { ENABLE(COMMON_LINK_SETTINGS) when ($MUSL == "yes") { - PEERDIR += contrib/libs/musl/full + PEERDIR += contrib/libs/musl/full } when ($MSVC == "yes" || $CYGWIN == "yes") { |