File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Cabal/Distribution/Simple Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1352,6 +1352,10 @@ gbuild verbosity numJobs pkg_descr lbi bm clbi = do
13521352 opts | needProfiling = profCxxOpts
13531353 | needDynamic = sharedCxxOpts
13541354 | otherwise = vanillaCxxOpts
1355+ -- TODO: Placing all Haskell, C, & C++ objects in a single directory
1356+ -- Has the potential for file collisions. In general we would
1357+ -- consider this a user error. However, we should strive to
1358+ -- add a warning if this occurs.
13551359 odir = fromFlag (ghcOptObjDir opts)
13561360 createDirectoryIfMissingVerbose verbosity True odir
13571361 needsRecomp <- checkNeedsRecompilation filename opts
Original file line number Diff line number Diff line change @@ -538,6 +538,9 @@ ppC2hsExtras d = filter (\p -> takeExtensions p == ".chs.c") `fmap`
538538
539539-- TODO: perhaps use this with hsc2hs too
540540-- TODO: remove cc-options from cpphs for cabal-version: >= 1.10
541+ -- TODO: Refactor and add seperate getCppOptionsForHs, getCppOptionsForCxx, & getCppOptionsForC
542+ -- instead of combining all these cases in a single function. This blind combination can
543+ -- potentially lead to compilation inconsistencies.
541544getCppOptions :: BuildInfo -> LocalBuildInfo -> [String ]
542545getCppOptions bi lbi
543546 = platformDefines lbi
You can’t perform that action at this time.
0 commit comments