From: Ian Lynagh Date: Wed, 31 Mar 2010 16:13:02 +0000 (+0000) Subject: Use machdepCCOpts when compiling the file to toggle -(no-)rtsopts X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=07846c5a4f285839929009a7c74d30c0c44a0c45;hp=8d28994ff311118b3353408632c745ea365cd65d Use machdepCCOpts when compiling the file to toggle -(no-)rtsopts Should fix toggling on OS X "Snow Leopard". Diagnosed by Roman Leshchinskiy. --- diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index c0aed96..d54bb0f 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1305,12 +1305,14 @@ mkExtraCObj dflags xs oFile <- newTempName dflags "o" writeFile cFile $ unlines xs let rtsDetails = getPackageDetails (pkgState dflags) rtsPackageId + (md_c_flags, _) = machdepCCOpts dflags SysTools.runCc dflags ([Option "-c", FileOption "" cFile, Option "-o", FileOption "" oFile] ++ - map (FileOption "-I") (includeDirs rtsDetails)) + map (FileOption "-I") (includeDirs rtsDetails) ++ + map Option md_c_flags) return oFile -- generates a Perl skript starting a parallel prg under PVM