@@ -24,8 +24,8 @@ fn main() {
2424 include_path : = os.join_path(sysroot_path, 'usr', 'include')
2525 android_include_path : = os.join_path(include_path, 'android')
2626
27- // '-I"$include_path"'
28- cflags : = ['- I"$android_include_path"', '- Wno- unused- value', '- Wno- implicit- function- declaration',
27+ // '-I"${ include_path} "'
28+ cflags : = ['- I"${ android_include_path} "', '- Wno- unused- value', '- Wno- implicit- function- declaration',
2929 '- Wno- int - conversion']
3030 for arch in ndk.supported_archs {
3131 for level in ['min ', 'max '] {
@@ -46,22 +46,22 @@ fn main() {
4646 o_file : = os.join_path(work_dir, arch + '- ' + level + '.o')
4747
4848 // x.v -> x.c
49- v_compile_cmd : = '$vexe - o $c_file - os android - gc none $v_example'
49+ v_compile_cmd : = '${ vexe} - o ${ c_file} - os android - gc none ${ v_example} '
5050 vres : = os.execute(v_compile_cmd)
5151 if vres.exit_code != 0 {
52- panic('"$v_compile_cmd" failed: $vres.output')
52+ panic('"${ v_compile_cmd} " failed: ${ vres.output} ')
5353 }
5454 assert os.exists(c_file)
5555
5656 // x.c -> x.o
57- compile_cmd : = '$compiler_api ${cflags.join(' ')} - c $c_file - o $o_file'
57+ compile_cmd : = '${ compiler_api} ${cflags.join(' ')} - c ${ c_file} - o ${ o_file} '
5858 cres : = os.execute(compile_cmd)
5959 if cres.exit_code != 0 {
60- panic('"$compile_cmd" failed: $cres.output')
60+ panic('"${ compile_cmd} " failed: ${ cres.output} ')
6161 }
6262 assert os.exists(o_file)
6363 compiler_exe_name : = os.file_name(compiler_api)
64- println('Compiled examples/ toml.v successfully for ($level) $arch $ compiler_exe_name')
64+ println('Compiled examples/ toml.v successfully for (${ level} ) ${ arch} ${ compiler_exe_name} ')
6565 }
6666 }
6767}
0 commit comments