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
1352
1352
opts | needProfiling = profCxxOpts
1353
1353
| needDynamic = sharedCxxOpts
1354
1354
| 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.
1355
1359
odir = fromFlag (ghcOptObjDir opts)
1356
1360
createDirectoryIfMissingVerbose verbosity True odir
1357
1361
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`
538
538
539
539
-- TODO: perhaps use this with hsc2hs too
540
540
-- 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.
541
544
getCppOptions :: BuildInfo -> LocalBuildInfo -> [String ]
542
545
getCppOptions bi lbi
543
546
= platformDefines lbi
You can’t perform that action at this time.
0 commit comments