Fix O0 build scripts by default without [profile.release]
#8560
+76
−11
[profile.release]
#8560