Last active
April 27, 2021 07:16
-
-
Save GokhanPolat/b30082f53c160cb044bb2a082c160de3 to your computer and use it in GitHub Desktop.
solc wrapper for emacs-solidity package
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
#!/bin/sh | |
# | |
# Wrapper for running solc from flycheck-solidity. | |
# | |
# If DOOM Emacs is used, this file must be ~/.doom.d/solc-wrapper.sh | |
# | |
set -e | |
/usr/local/bin/solc \ | |
@openzeppelin/=$(git rev-parse --show-toplevel)/node_modules/@openzeppelin/ \ | |
--allow-paths $(git rev-parse --show-toplevel)/contracts/**/*.sol,$(git rev-parse --show-toplevel) \ | |
$@ | |
# /usr/local/bin/solc @openzeppelin/=$(git rev-parse --show-toplevel)/node_modules/@openzeppelin/ --allow-paths $(git rev-parse --show-toplevel)/contracts/,$(git rev-parse --show-toplevel) $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment