From 85ae0cb070628bcb98e63e6166fd6f52045f385a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 12 Jun 2015 10:54:02 +0200 Subject: ghc: move gcc-clang-wrapper.sh script into the ghc directory tree since it's the only user of that script --- .../haskell-modules/gcc-clang-wrapper.sh | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100755 pkgs/development/haskell-modules/gcc-clang-wrapper.sh (limited to 'pkgs/development/haskell-modules') diff --git a/pkgs/development/haskell-modules/gcc-clang-wrapper.sh b/pkgs/development/haskell-modules/gcc-clang-wrapper.sh deleted file mode 100755 index d081be231a1c..000000000000 --- a/pkgs/development/haskell-modules/gcc-clang-wrapper.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -inPreprocessorMode () { - hasE=0 - hasU=0 - hasT=0 - for arg in "$@" - do - if [ 'x-E' = "x$arg" ]; then hasE=1; fi - if [ 'x-undef' = "x$arg" ]; then hasU=1; fi - if [ 'x-traditional' = "x$arg" ]; then hasT=1; fi - done - [ "$hasE$hasU$hasT" = '111' ] -} - -extraClangArgs="-Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs" - -adjustPreprocessorLanguage () { - newArgs='' - while [ $# -gt 0 ] - do - newArgs="$newArgs $1" - if [ "$1" = '-x' ] - then - shift - if [ $# -gt 0 ] - then - if [ "$1" = 'c' ] - then - newArgs="$newArgs assembler-with-cpp" - else - newArgs="$newArgs $1" - fi - fi - fi - shift - done - echo $newArgs -} - -if inPreprocessorMode "$@" -then - exec clang $extraClangArgs `adjustPreprocessorLanguage "$@"` -else - exec clang $extraClangArgs "${@/-nodefaultlibs/}" -fi -- cgit 1.4.1