| ... | @@ -71,6 +71,8 @@ pub fn buildStaticLib(comp: *Compilation) !void { | ... | @@ -71,6 +71,8 @@ pub fn buildStaticLib(comp: *Compilation) !void { |
| 71 | try cflags.append("-Wa,--noexecstack"); | 71 | try cflags.append("-Wa,--noexecstack"); |
| 72 | try cflags.append("-fvisibility=hidden"); | 72 | try cflags.append("-fvisibility=hidden"); |
| 73 | try cflags.append("-fvisibility-inlines-hidden"); | 73 | try cflags.append("-fvisibility-inlines-hidden"); |
| | 74 | // necessary so that libunwind can unwind through its own stack frames |
| | 75 | try cflags.append("-funwind-tables"); |
| 74 | | 76 | |
| 75 | // This is intentionally always defined because the macro definition means, should it only | 77 | // This is intentionally always defined because the macro definition means, should it only |
| 76 | // build for the target specified by compiler defines. Since we pass -target the compiler | 78 | // build for the target specified by compiler defines. Since we pass -target the compiler |