File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 76
76
77
77
COMMON_COMPILE=" $CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$( pwd) ="
78
78
COMMON_CC=" "
79
- [ " $IS_MAC " = " true " -a " $2 " != " wasm " ] && COMMON_CC=" $COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU "
80
- [ " $IS_MAC " = " false " -a " $2 " != " wasm " ] && COMMON_CC=" $COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU "
79
+ [[ " $TARGET_STRING " != " x86 " * ] ] && COMMON_CC=" $COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU "
80
+ [[ " $TARGET_STRING " = " x86 " * ] ] && COMMON_CC=" $COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU "
81
81
[ " $IS_MAC " = " true" -a " $MACOS_SDK " != " " ] && COMMON_COMPILE=" $COMMON_COMPILE -isysroot $MACOS_SDK "
82
82
83
83
DEBUG_ARG=" $3 "
You can’t perform that action at this time.
0 commit comments