1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Take care not to load semantic-source twice.

This commit is contained in:
Rob Rix 2019-11-01 13:44:57 -04:00 committed by GitHub
parent 110b1b69e8
commit 7662ee75f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ echo "-i$root/test"
echo "-optP-include"
echo "-optP$root/$repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build/autogen/cabal_macros.h"
echo "-hide-all-packages"
# Emit package flags from the environment file, removing comments & prefixing with -
cabal exec --builddir=$repl_builddir -v0 bash -- -c 'cat $GHC_ENVIRONMENT' | grep -v '^--' | sed -e 's/^/-/'