forked from romainthomas/iCDump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust as needed for Stubber 3 binary analysis usage.
- Loading branch information
1 parent
65e130c
commit aa0fcb3
Showing
12 changed files
with
26 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/sh | ||
#!/usr/bin/env zsh | ||
set -ex | ||
python3 ./bindings/python/setup.py --ninja --osx-arch=arm64 \ | ||
--lief-dir=/tmp/third-party/LIEF-0.13.0-Darwin/share/LIEF/cmake \ | ||
--llvm-dir=/tmp/third-party/LLVM-14.0.6-Darwin/lib/cmake/llvm \ | ||
build --build-temp=/tmp/arm64 bdist_wheel --skip-build \ | ||
--plat-name=macosx_${MACOSX_DEPLOYMENT_TARGET}_arm64 | ||
|
||
export MACOSX_DEPLOYMENT_TARGET=10.13 | ||
python3 ./bindings/python/setup.py --ninja --osx-arch='x86_64;arm64' \ | ||
--lief-dir=$GITHUB_WORKSPACE/third-party/LIEF-0.14.1-Darwin/share/LIEF/cmake \ | ||
--llvm-dir=$GITHUB_WORKSPACE/third-party/LLVM-14.0.6-Darwin/lib/cmake/llvm \ | ||
build bdist_wheel --skip-build | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
third-party/LIEF* | ||
third-party/LLVM* | ||
third-party/LLVM* | ||
.vscode | ||
build | ||
dist | ||
*.egg-info | ||
icdump*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
find . -type d -exec bash -c 'mkdir -p ../LIEF-0.14.1-Darwin/{}' \; | ||
find . -type f -exec bash -c 'if [[ $(lipo -info {} 2>&1) == *"fatal error"* ]]; then cp {} ../LIEF-0.14.1-Darwin/{}; fi ' \; | ||
find . -type f -exec bash -c 'if [[ ! $(lipo -info {} 2>&1) == *"fatal error"* ]]; then lipo -create -output ../LIEF-0.14.1-Darwin/{} {} ../LIEF-0.14.1-Darwin-arm64/{}; fi ' \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
find . -type d -exec bash -c 'mkdir -p ../clang-llvm-14.0.6/{}' \; | ||
find . -type f -exec bash -c 'if [[ $(lipo -info {} 2>&1) == *"fatal error"* ]]; then cp {} ../clang-llvm-14.0.6/{}; fi ' \; | ||
find . -type f -exec bash -c 'if [[ ! $(lipo -info {} 2>&1) == *"fatal error"* ]]; then lipo -create -output ../clang-llvm-14.0.6/{} {} ../clang-llvm-14.0.6-arm64/{}; fi ' \; |