aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts
diff options
context:
space:
mode:
authorignat <ignat@yandex-team.com>2023-11-30 19:48:51 +0300
committerignat <ignat@yandex-team.com>2023-11-30 22:21:17 +0300
commitc2f81b1b5ffe34c9a9f5abc5405ddb538856cc43 (patch)
treeec9e6769e32d1e45c5476838fef01dfc6562fae2 /build/scripts
parentf5d4e4495f6741d8df199dc9f888417ab0485010 (diff)
downloadydb-c2f81b1b5ffe34c9a9f5abc5405ddb538856cc43.tar.gz
Fix quoting -passes option value (thanks for @spreis for hint)
Diffstat (limited to 'build/scripts')
-rw-r--r--build/scripts/llvm_opt_wrapper.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/scripts/llvm_opt_wrapper.py b/build/scripts/llvm_opt_wrapper.py
index 38ca3004af..90bd87f97a 100644
--- a/build/scripts/llvm_opt_wrapper.py
+++ b/build/scripts/llvm_opt_wrapper.py
@@ -4,9 +4,16 @@ import sys
def fix(s):
# we use '#' instead of ',' because ymake always splits args by comma
- if 'internalize' in s:
+ if s.startswith('-internalize-public-api-list'):
return s.replace('#', ',')
+ # Dirty hack to eliminate double quotes from value of passes option.
+ # Note that these double quoted are required by cmake.
+ if s.startswith('-passes'):
+ name, value = s.split('=', 1)
+ value = value.strip('"')
+ return '='.join([name, value])
+
return s