Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
5fc4c66b
Commit
5fc4c66b
authored
May 05, 2022
by
Nicolas "Norswap" Laurent
Committed by
norswap
May 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid rebuilding unicorn each time 'make build' is invoked
parent
95d3ee1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
Makefile
Makefile
+16
-3
build_unicorn.sh
build_unicorn.sh
+0
-15
No files found.
Makefile
View file @
5fc4c66b
...
...
@@ -2,8 +2,20 @@ SHELL := /bin/bash
build
:
submodules unicorn minigeth_mips minigeth_default_arch mipsevm contracts
unicorn
:
./build_unicorn.sh
# Approximation, use `make unicorn_rebuild` to force.
unicorn/build
:
unicorn/CMakeLists.txt
mkdir
-p
unicorn/build
cd
unicorn/build
&&
cmake ..
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
unicorn
:
unicorn/build
cd
unicorn/build
&&
make
-j8
# The Go linker / runtime expects these to be there!
cp
unicorn/build/libunicorn.so.1 unicorn
cp
unicorn/build/libunicorn.so.2 unicorn
unicorn_rebuild
:
touch
unicorn/CMakeLists.txt
make unicorn
submodules
:
# CI will checkout submodules on its own
(
and fails on these commands
)
...
...
@@ -88,4 +100,5 @@ mrproper: clean
rm
-rf
mipigo/venv
.PHONY
:
build unicorn submodules minigeth_mips minigeth_default_arch mipsevm contracts
\
nodejs clean mrproper test_challenge test_mipsevm test_minigeth test clear_cache
nodejs clean mrproper test_challenge test_mipsevm test_minigeth test
clear_cache unicorn_rebuild
build_unicorn.sh
deleted
100755 → 0
View file @
95d3ee1c
cd
unicorn
mkdir
-p
build
cd
build
cmake ..
-DUNICORN_ARCH
=
mips
-DCMAKE_BUILD_TYPE
=
Release
make
-j8
# The Go linker / runtime expects these to be there!
cp
libunicorn.so.1 ..
cp
libunicorn.so.2 ..
# export LIBUNICORN_PATH for Github CI
# TODO: is this actually needed?
if
[[
!
-z
"
$GITHUB_ENV
"
]]
;
then
echo
"LIBUNICORN_PATH=
$(
pwd
)
/unicorn/"
>>
$GITHUB_ENV
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment