mirror of
https://github.com/github/semantic.git
synced 2024-11-27 12:57:49 +03:00
Write the output to a specified path.
This commit is contained in:
parent
d0412d7a88
commit
ed455979eb
@ -17,51 +17,55 @@ else
|
||||
repl_builddir=dist-newstyle
|
||||
fi
|
||||
|
||||
echo "-O0"
|
||||
echo "-ignore-dot-ghci"
|
||||
function flags {
|
||||
echo "-O0"
|
||||
echo "-ignore-dot-ghci"
|
||||
|
||||
echo "-outputdir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-odir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-hidir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-stubdir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-outputdir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-odir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-hidir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
echo "-stubdir $repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build"
|
||||
|
||||
echo "-i$root/$repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build/autogen"
|
||||
echo "-i$root/$repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build/autogen"
|
||||
|
||||
echo "-I$root/$repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build/autogen"
|
||||
echo "-I$root/$repl_builddir/build/x86_64-osx/ghc-$ghc_version/semantic-0.8.0.0/build/autogen"
|
||||
|
||||
echo "-i$root/semantic-analysis/src"
|
||||
echo "-i$root/semantic-ast/src"
|
||||
echo "-i$root/semantic-core/src"
|
||||
echo "-i$root/semantic-java/src"
|
||||
echo "-i$root/semantic-json/src"
|
||||
echo "-i$root/semantic-python/src"
|
||||
echo "-i$root/semantic-tags/src"
|
||||
echo "-i$root/app"
|
||||
echo "-i$root/src"
|
||||
echo "-i$root/bench"
|
||||
echo "-i$root/test"
|
||||
echo "-i$root/semantic-analysis/src"
|
||||
echo "-i$root/semantic-ast/src"
|
||||
echo "-i$root/semantic-core/src"
|
||||
echo "-i$root/semantic-java/src"
|
||||
echo "-i$root/semantic-json/src"
|
||||
echo "-i$root/semantic-python/src"
|
||||
echo "-i$root/semantic-tags/src"
|
||||
echo "-i$root/app"
|
||||
echo "-i$root/src"
|
||||
echo "-i$root/bench"
|
||||
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 "-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"
|
||||
echo "-hide-all-packages"
|
||||
|
||||
# Emit package flags from the environment file, removing comments & prefixing with -
|
||||
cabal v2-exec --builddir="$repl_builddir" -v0 bash -- -c 'cat $GHC_ENVIRONMENT' | grep -v '^--' | sed -e 's/^/-/'
|
||||
# Emit package flags from the environment file, removing comments & prefixing with -
|
||||
cabal v2-exec --builddir="$repl_builddir" -v0 bash -- -c 'cat $GHC_ENVIRONMENT' | grep -v '^--' | sed -e 's/^/-/'
|
||||
|
||||
echo "-XHaskell2010"
|
||||
echo "-XStrictData"
|
||||
echo "-XHaskell2010"
|
||||
echo "-XStrictData"
|
||||
|
||||
echo "-Wwarn"
|
||||
echo "-Wwarn"
|
||||
|
||||
echo "-Weverything"
|
||||
echo "-Wno-all-missed-specialisations"
|
||||
echo "-Wno-implicit-prelude"
|
||||
echo "-Wno-missed-specialisations"
|
||||
echo "-Wno-missing-import-lists"
|
||||
echo "-Wno-missing-local-signatures"
|
||||
echo "-Wno-monomorphism-restriction"
|
||||
echo "-Wno-name-shadowing"
|
||||
echo "-Wno-safe"
|
||||
echo "-Wno-unsafe"
|
||||
echo "-Wno-star-is-type"
|
||||
echo "-Weverything"
|
||||
echo "-Wno-all-missed-specialisations"
|
||||
echo "-Wno-implicit-prelude"
|
||||
echo "-Wno-missed-specialisations"
|
||||
echo "-Wno-missing-import-lists"
|
||||
echo "-Wno-missing-local-signatures"
|
||||
echo "-Wno-monomorphism-restriction"
|
||||
echo "-Wno-name-shadowing"
|
||||
echo "-Wno-safe"
|
||||
echo "-Wno-unsafe"
|
||||
echo "-Wno-star-is-type"
|
||||
}
|
||||
|
||||
flags > "$output_file"
|
||||
|
Loading…
Reference in New Issue
Block a user