aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2025-01-17 19:56:00 +0300
committerthegeorg <thegeorg@yandex-team.com>2025-01-17 20:58:35 +0300
commit25f2cba9762d208eaa6283429ce74be5f212a0c9 (patch)
tree18f8aa7d88790eba0d818b3dc74002ebee835144
parentf4f4ef7f7ee5c0dbaf18a9cbcfd8161888ada142 (diff)
downloadydb-25f2cba9762d208eaa6283429ce74be5f212a0c9.tar.gz
Remove unused `macro COMPILE_SWIFT_MODULE`
Support was added in rXXXXXX, but made no progress and found no usage since then. commit_hash:c1c06bbb62ef8be1abab790209370b5ac29514c7
-rw-r--r--build/scripts/gen_swiftc_output_map.py16
-rw-r--r--build/scripts/ya.make1
-rw-r--r--build/ymake.core.conf15
3 files changed, 0 insertions, 32 deletions
diff --git a/build/scripts/gen_swiftc_output_map.py b/build/scripts/gen_swiftc_output_map.py
deleted file mode 100644
index 6811827ecd..0000000000
--- a/build/scripts/gen_swiftc_output_map.py
+++ /dev/null
@@ -1,16 +0,0 @@
-import json
-import sys
-
-
-def just_do_it(args):
- source_root, build_root, out_file, srcs = args[0], args[1], args[2], args[3:]
- assert len(srcs)
- result_obj = {}
- for src in srcs:
- result_obj[src] = {'object': src.replace(source_root, build_root) + '.o'}
- with open(out_file, 'w') as of:
- of.write(json.dumps(result_obj))
-
-
-if __name__ == '__main__':
- just_do_it(sys.argv[1:])
diff --git a/build/scripts/ya.make b/build/scripts/ya.make
index fc9d195d57..44752603d0 100644
--- a/build/scripts/ya.make
+++ b/build/scripts/ya.make
@@ -79,7 +79,6 @@ ELSEIF (PY3)
gen_join_srcs.py
gen_py_protos.py
gen_py_reg.py
- gen_swiftc_output_map.py
gen_tasklet_reg.py
gen_test_apk_gradle_script.py
gen_yql_python_udf.py
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index cce92d4aa1..8b27b9a983 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -5624,22 +5624,7 @@ macro COLLECT_YAML_CONFIG_FILES(Varname, Dir) {
# tag:swift-specific
CPP_XCODE_TOOLCHAIN_VERSION=9.2
-SWIFT_XCODE_TOOLCHAIN_VERSION=9.2
XCODE_TOOLS_VERSION=10.1
-macro COMPILE_SWIFT_MODULE(SRCS{input}[], BRIDGE_HEADER{input}="", Flags...) {
- when ($BRIDGE_HEADER != "") {
- SWIFT_BRIDGE_HEADER=-import-objc-header ${input:BRIDGE_HEADER}
- }
- otherwise {
- SWIFT_BRIDGE_HEADER=
- }
-
- .PEERDIR+=build/platform/xcode/swift
- # swift core libraries
- LDFLAGS($SWIFT_LD_FLAGS)
-
- .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_swiftc_output_map.py"} $(SOURCE_ROOT) $(BUILD_ROOT) $BINDIR/swift_output_map.json ${input:SRCS} && $SWIFT_COMPILER -c $SWIFT_FLAGS_PLATFORM $Flags $SWIFT_BRIDGE_HEADER ${pre=-Xcc -I:_C__INCLUDE} ${input:SRCS} -emit-objc-header -emit-objc-header-path ${output;suf=-Swift.h:REALPRJNAME} -emit-module -module-name $REALPRJNAME -output-file-map $BINDIR/swift_output_map.json ${hide;output;suf=.o:SRCS}
-}
TEST_TOOL_HOST_LOCAL=
TEST_TOOL_TARGET_LOCAL=