@@ -128,7 +128,8 @@ q6_arch=v65
128
128
g0_lib_path=${sdk_libs} /${q6_arch} /G0
129
129
pic_lib_path=${sdk_libs} /${q6_arch} /G0/pic
130
130
131
- cargo build --target=hexagon-unknown-none-elf -Zbuild-std
131
+ build_cfg=release
132
+ cargo build --target=hexagon-unknown-none-elf -Zbuild-std --release
132
133
133
134
# Builds an executable against "hexagon standalone OS" suitable for emulation:
134
135
${cc} --target=hexagon-unknown-none-elf -o testit \
@@ -142,12 +143,12 @@ ${cc} --target=hexagon-unknown-none-elf -o testit \
142
143
-L${sdk_libs} /${q6_arch} / \
143
144
-L${sdk_libs} / \
144
145
testit.c \
145
- target/hexagon-unknown-none-elf/debug/libmin_ex_lib_lin .rlib \
146
- target/hexagon-unknown-none-elf/debug /deps/libcore-* .rlib \
147
- target/hexagon-unknown-none-elf/debug /deps/libcompiler_builtins-* .rlib \
146
+ target/hexagon-unknown-none-elf/${build_cfg} /libdemo1_hexagon .rlib \
147
+ target/hexagon-unknown-none-elf/${build_cfg} /deps/libcore-* .rlib \
148
+ target/hexagon-unknown-none-elf/${build_cfg} /deps/libcompiler_builtins-* .rlib \
148
149
-Wl,--start-group \
149
150
-Wl,--defsym,_SDA_BASE_=0,--defsym,__sbss_start=0,--defsym,__sbss_end=0 \
150
- -lstandalone \
151
+ ${g0_lib_path} /libstandalone.a \
151
152
${g0_lib_path} /libc.a \
152
153
-lgcc \
153
154
-lc_eh \
@@ -248,9 +249,9 @@ ${cc} --target=hexagon-unknown-none-elf -o testit.so \
248
249
-Wl,--wrap=memalign \
249
250
-m${q6_arch} \
250
251
testit.c \
251
- target/hexagon-unknown-none-elf/debug/libmin_ex_lib_lin .rlib \
252
- target/hexagon-unknown-none-elf/debug /deps/libcore-* .rlib \
253
- target/hexagon-unknown-none-elf/debug /deps/libcompiler_builtins-* .rlib \
252
+ target/hexagon-unknown-none-elf/${build_cfg} /libdemo2_hexagon .rlib \
253
+ target/hexagon-unknown-none-elf/${build_cfg} /deps/libcore-* .rlib \
254
+ target/hexagon-unknown-none-elf/${build_cfg} /deps/libcompiler_builtins-* .rlib \
254
255
-Wl,-soname=testit \
255
256
${pic_lib_path} /libc.so
256
257
0 commit comments