summaryrefslogtreecommitdiff
path: root/compiler/GHC/SysTools/ExtraObj.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/SysTools/ExtraObj.hs')
-rw-r--r--compiler/GHC/SysTools/ExtraObj.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/SysTools/ExtraObj.hs b/compiler/GHC/SysTools/ExtraObj.hs
index 453dc83996..b0949ee889 100644
--- a/compiler/GHC/SysTools/ExtraObj.hs
+++ b/compiler/GHC/SysTools/ExtraObj.hs
@@ -55,7 +55,7 @@ mkExtraObj dflags extn xs
-- set of include directories and PIC flags.
cOpts = map Option (picCCOpts dflags)
++ map (FileOption "-I")
- (unitIncludeDirs $ unsafeGetUnitInfo dflags rtsUnitId)
+ (unitIncludeDirs $ unsafeLookupUnit dflags rtsUnitId)
-- When compiling assembler code, we drop the usual C options, and if the
-- compiler is Clang, we add an extra argument to tell Clang to ignore