diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-16 13:03:39 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-12-16 13:33:21 +0300 |
commit | 38aeb0f20ff2e8cb1eaa4c0ed0af40079de6471f (patch) | |
tree | 34c8fd505b8bb4e5ffe19036db0b90501aee11c0 /build | |
parent | 7827e4e464727d19606f6c95fa1ad4bf279aab5b (diff) | |
download | ydb-38aeb0f20ff2e8cb1eaa4c0ed0af40079de6471f.tar.gz |
Intermediate changes
commit_hash:fdd520cd0bac7f8a15914f2f3c116eeb81ca0767
Diffstat (limited to 'build')
-rw-r--r-- | build/scripts/wrapcc.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/build/scripts/wrapcc.py b/build/scripts/wrapcc.py deleted file mode 100644 index 44dd9d619a..0000000000 --- a/build/scripts/wrapcc.py +++ /dev/null @@ -1,31 +0,0 @@ -import argparse -import os -import sys - - -WRAPCC_ARGS_END = '--wrapcc-end' - - -def fix(source_file: str, source_root: str, build_root: str) -> list[str]: - flags = [] - return flags - - -def parse_args(): - delimiter = -1 - if WRAPCC_ARGS_END in sys.argv: - delimiter = sys.argv.index(WRAPCC_ARGS_END) - assert delimiter != -1, f"This wrapper should be called with {WRAPCC_ARGS_END} argument." - - parser = argparse.ArgumentParser() - parser.add_argument('--source-file', required=True) - parser.add_argument('--source-root', required=True) - parser.add_argument('--build-root', required=True) - cc_cmd = sys.argv[delimiter + 1:] - return parser.parse_args(sys.argv[1:delimiter]), cc_cmd - - -if __name__ == '__main__': - args, cc_cmd = parse_args() - cmd = cc_cmd + fix(args.source_file, args.source_root, args.build_root) - os.execv(cmd[0], cmd) |