summaryrefslogtreecommitdiff
path: root/src/third_party/unwind/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/unwind/SConscript')
-rw-r--r--src/third_party/unwind/SConscript28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/third_party/unwind/SConscript b/src/third_party/unwind/SConscript
index 60e608958c4..6d4ffdf9e57 100644
--- a/src/third_party/unwind/SConscript
+++ b/src/third_party/unwind/SConscript
@@ -17,6 +17,14 @@ unwind_root = env.Dir(".").srcnode()
unwind_platform = unwind_root.Dir("platform/${TARGET_OS}_${TARGET_ARCH}")
unwind_src_dir = env.Dir("dist/src")
+# Generated by a manual process:
+# - Run "scripts/host_config.sh |tee host_config.out".
+# - Gather .o dependencies of the libunwind.a target.
+# - Some .o are from prereq libraries, they have .lax paths.
+# Replace the `*.lax/$PREREQ/*.o` dependencies with the
+# corresponding .o from that $PREREQ library.
+# - Replace each .o with the source file (.c or .S) that generated it.
+# - Ensure the the ${CC} arguments are preserved by SCons.
unwind_sources = [
'mi/backtrace.c',
'mi/dyn-cancel.c',
@@ -38,28 +46,8 @@ unwind_sources = [
'mi/Lset_fpreg.c',
'mi/Lset_reg.c',
'mi/mempool.c',
- 'mi/_ReadSLEB.c',
- 'mi/_ReadULEB.c',
'mi/strerror.c',
'os-linux.c',
- 'unwind/Backtrace.c',
- 'unwind/DeleteException.c',
- 'unwind/FindEnclosingFunction.c',
- 'unwind/ForcedUnwind.c',
- 'unwind/GetBSP.c',
- 'unwind/GetCFA.c',
- 'unwind/GetDataRelBase.c',
- 'unwind/GetGR.c',
- 'unwind/GetIP.c',
- 'unwind/GetIPInfo.c',
- 'unwind/GetLanguageSpecificData.c',
- 'unwind/GetRegionStart.c',
- 'unwind/GetTextRelBase.c',
- 'unwind/RaiseException.c',
- 'unwind/Resume.c',
- 'unwind/Resume_or_Rethrow.c',
- 'unwind/SetGR.c',
- 'unwind/SetIP.c',
#
# x86_64
'x86_64/is_fpreg.c',