diff --git a/build.sh b/build.sh index aea189eceb00fec84fe6b80a55c681cdbc989485..4aedc25efffd40f228399e422c06acc317c0396b 100755 --- a/build.sh +++ b/build.sh @@ -98,7 +98,11 @@ do_make() rm -rf "$BASE_HOME/test/xts/autogen_apiobjs" export XTS_SUITENAME=acts if [ "$SYSTEM_SIZE" = "standard" ]; then - ./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target $BUILD_TARGET --build-target "deploy_testtools" --gn-args is_standard_system=true + MUSL_ARGS="" + if [ "$PRODUCT_NAME" = "m40" ]; then + MUSL_ARGS = "--gn-args use_musl=false --gn-args use_custom_libcxx=true --gn-args use_custom_clang=true" + fi + ./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target $BUILD_TARGET --build-target "deploy_testtools" --gn-args is_standard_system=true $MUSL_ARGS else if [ "$BUILD_TARGET" = "acts acts_ivi acts_intellitv acts_wearable" ]; then ./build.sh --product-name $PRODUCT_NAME --gn-args build_xts=true --build-target "acts" --build-target "acts_ivi" --build-target "acts_intellitv" --build-target "acts_wearable" --build-target "deploy_testtools"