fix: pass -C debuginfo
after weakening if explicitly set
#12165
+14
−16
Merged