Fix setting panic=unwind compiling lib a extra time.
#6781
Merged
panic=unwind compiling lib a extra time.
#6781