Commit fcc62d1e authored by Zhen Zhang's avatar Zhen Zhang Committed by Andrey Mokhov

Fix missing symbols when cross-compiling (#583)

parent 7c3c45f4
......@@ -29,9 +29,7 @@ cIncludeArgs = do
gmpIncludeDir <- getSetting GmpIncludeDir
ffiIncludeDir <- getSetting FfiIncludeDir
cross <- expr crossCompiling
compilerOrGhc <- package compiler ||^ package ghc
mconcat [ not (cross && compilerOrGhc) ? arg "-Iincludes"
mconcat [ arg "-Iincludes"
, arg $ "-I" ++ root -/- generatedDir
, arg $ "-I" ++ path
, pure . map ("-I"++) . filter (/= "") $ [iconvIncludeDir, gmpIncludeDir]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment