Skip to content

Instantly share code, notes, and snippets.

@GokhanPolat
Last active April 27, 2021 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GokhanPolat/b30082f53c160cb044bb2a082c160de3 to your computer and use it in GitHub Desktop.
Save GokhanPolat/b30082f53c160cb044bb2a082c160de3 to your computer and use it in GitHub Desktop.
solc wrapper for emacs-solidity package
#!/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