Simplify compilation on different platforms #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please note that I am not a C++ expert, so I'll appreciate all feedback.
I included all changes necessary to get it working on my machine, but in the meantime some problems were fixed by other PRs. Starknet.py uses this code to build native code (https://github.com/software-mansion/starknet.py).
Changes:
gmock
totarget_link_libraries
for tests.src/starkware/crypto/ffi/js/CMakeLists.txt
copy either.so
or.dylib
files.endian.h
based on https://github.com/sahlberg/libsmb2/blob/master/include/portable-endian.h. support for building on Apple #4 includes headers for Apple devices.bn
withbn.js
in js package to fix js tests. fix: installbn.js
to fix js test error #7 fixes it as well.uint128
substitute for 32 bit platforms.