mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-22 19:43:42 +01:00
Support assembly files.
(Logical change 1.85)
This commit is contained in:
parent
72425f375d
commit
e455a9297e
1 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,16 @@
|
|||
#!/bin/sh
|
||||
for gname in `ls G*.c G*.cxx 2>/dev/null`; do
|
||||
for gname in `ls G*.c G*.cxx G*.S 2>/dev/null`; do
|
||||
lname="L$(expr $gname : '.\(.*\)')"
|
||||
bk edit $lname >/dev/null 2>&1
|
||||
ext=$(expr $gname : '[^.]*[.]\(.*\)')
|
||||
if [ "$ext" = "S" ]; then
|
||||
include=""
|
||||
else
|
||||
include="#include <libunwind.h>"
|
||||
fi
|
||||
echo -e "\
|
||||
#define UNW_LOCAL_ONLY\n\
|
||||
#include <libunwind.h>\n\
|
||||
$include\n\
|
||||
#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)\n\
|
||||
#include \"$gname\"\n\
|
||||
#endif" > $lname
|
||||
|
|
Loading…
Reference in a new issue