Skip to content

Commit

Permalink
Merge pull request #5592 from filecoin-project/feat/ffi-check
Browse files Browse the repository at this point in the history
Verify FFI version before building
  • Loading branch information
magik6k authored Feb 15, 2021
2 parents 95e47cf + 06cc1eb commit 50d6db3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ MODULES+=$(FFI_PATH)
BUILD_DEPS+=build/.filecoin-install
CLEAN+=build/.filecoin-install

$(MODULES): build/.update-modules ;
ffi-version-check:
@[[ "$$(awk '/const Version/{print $$5}' extern/filecoin-ffi/version.go)" -eq 1 ]] || (echo "FFI version mismatch, update submodules"; exit 1)
BUILD_DEPS+=ffi-version-check

.PHONY: ffi-version-check


$(MODULES): build/.update-modules ;
# dummy file that marks the last time modules were updated
build/.update-modules:
git submodule update --init --recursive
Expand Down

0 comments on commit 50d6db3

Please sign in to comment.