diff --git a/build.sh b/build.sh index 5f6116f..d632aee 100755 --- a/build.sh +++ b/build.sh @@ -269,7 +269,6 @@ build_project() { else # Build both architectures print_status "Building OTP project for x86_64..." - make clean make CC=gcc ARCH=x86_64 if [ $? -eq 0 ]; then print_success "x86_64 build completed successfully" @@ -279,7 +278,8 @@ build_project() { fi print_status "Building OTP project for ARM64/AArch64..." - make clean + # Clean only object files, not the x86_64 binary + rm -f src/*.o make CC=aarch64-linux-gnu-gcc ARCH=arm64 if [ $? -eq 0 ]; then print_success "ARM64/AArch64 build completed successfully"