This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[cmake] add FindWasm.cmake and binaryen code into the repo #1412
Merged
wanderingbort
merged 23 commits into
EOSIO:master
from
asiniscalchi:dev_cmake_using_finds
Feb 27, 2018
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6fd5d62
[cmake] FindBinaryen
asiniscalchi 630b108
[cmake] add FindWasm.cmake
asiniscalchi 6f835a3
[travis] fix cmake defines
asiniscalchi deeb424
[cmake] WAST_TOOLCHAIN -> WAST_TOOLCHAIN_FOUND
asiniscalchi 54c7615
[cmake] move TODO
asiniscalchi 96533a5
fix bootstrap script
asiniscalchi 2ecf14c
Merge branch 'master' into dev_cmake_using_finds
asiniscalchi bd6529f
[cmake] FindBinaryen search for include dir and libraries
asiniscalchi ff86b55
[cmake] removed space
asiniscalchi 3b99d30
[cmake] WASM_TOOLCHAIN found by cmake tools
asiniscalchi b00680b
Merge branch 'master' into dev_cmake_using_finds
asiniscalchi 403222d
[cmake] removed unusefull part of FindBinaryen.cmake
asiniscalchi 87df018
added binaryen into the source code
asiniscalchi 91e5133
compile binaryen
asiniscalchi c2305ef
Merge branch 'dev_binaryen_into_source' into dev_cmake_using_finds
asiniscalchi 22e8563
using binaryen submodule
asiniscalchi 6fcd58f
[cmake] make WASM_TOOLCHAIN mandatory (for a while)
asiniscalchi 7d65a18
merging master @ f66d188c to resolve conflicts
b1bart 1b74d35
Change binaryen submodule to point to EOSIOs fork with the changes fo…
b1bart c701f0c
using WASM_ROOT in Docker
asiniscalchi 22ad4a8
update doc
asiniscalchi 502c569
Merge branch 'master' into dev_cmake_using_finds
asiniscalchi d1201ca
remove stale submodule files
b1bart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,17 @@ | ||
# - Try to find WASM | ||
# Once done this will define | ||
# WASM_FOUND - System has WASM | ||
|
||
# TODO: Check if compiler is able to generate wasm32 | ||
|
||
find_file(WASM_LLVM_CONFIG llvm-config HINTS ${WASM_ROOT}/bin) | ||
find_program(WASM_CLANG clang HINTS ${WASM_ROOT}/bin) | ||
find_program(WASM_LLC llc HINTS ${WASM_ROOT}/bin) | ||
find_program(WASM_LLVM_LINK llvm-link HINTS ${WASM_ROOT}/bin) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set EOS_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
|
||
find_package_handle_standard_args(WASM DEFAULT_MSG WASM_LLVM_CONFIG WASM_CLANG WASM_LLC WASM_LLVM_LINK) | ||
|
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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point, there is no "successful" cmake run where
WASM_TOOLCHAIN_FOUND
would be false. Most of these conditionals can be removed in favor of running the side of the branch that corresponds with success.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I was trying to mimic the master branch behavior