mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-09-28 17:39:29 +02:00
354b3fd45b
Change the way we generate the cursor header files, so that we do not need to invoke IA64 binaries, which would fail when cross-compiling libunwind. Adopt the strategy used in the Linux kernel build system, and parse our annotated offset information from the assembler file produced by the compiler.
7 lines
187 B
Bash
Executable file
7 lines
187 B
Bash
Executable file
#!/bin/sh
|
|
test -z "$1" && exit 1
|
|
echo "/* GENERATED */"
|
|
echo "#ifndef cursor_i_h"
|
|
echo "#define cursor_i_h"
|
|
sed -ne 's/^->"\(\S*\)" \(\d*\)/#define \1 \2/p' < $1 || exit $?
|
|
echo "#endif"
|