Fix blinking UIDs in YQL_UDF
@@ -7,12 +7,13 @@ def onllvm_bc(unit, *args):
free_args, kwds = sort_by_keywords({'SYMBOLS': -1, 'NAME': 1}, args)
name = kwds['NAME'][0]
symbols = kwds.get('SYMBOLS')
- merged_bc = name + '_merged.bc'
- out_bc = name + '_optimized.bc'
+ obj_suf = unit.get('OBJ_SUF')
+ merged_bc = name + '_merged' + obj_suf + '.bc'
+ out_bc = name + '_optimized' + obj_suf + '.bc'
bcs = []
for x in free_args:
rel_path = rootrel_arc_src(x, unit)
- bc_path = '${ARCADIA_BUILD_ROOT}/' + skip_build_root(rel_path) + '.bc'
+ bc_path = '${ARCADIA_BUILD_ROOT}/' + skip_build_root(rel_path) + obj_suf + '.bc'
if x.endswith('.c'):
llvm_compile = unit.onllvm_compile_c
elif x.endswith('.ll'):
