fix: pass -C debuginfo
after weakening if explicitly set
#12165
Merged
-C debuginfo
after weakening if explicitly set
#12165