Commit 12bb43a6 authored by Ian Lynagh's avatar Ian Lynagh

Add osuf to the name we use for the split dir

This avoids a collision between the directories we use when compiling
multiple ways, which in turn leads to a race condition in parallel
builds.
parent 4ca8014a
......@@ -1141,8 +1141,8 @@ runPhase SplitAs _stop hsc_env _basename _suff _input_fn get_output_fn maybe_loc
output_fn <- get_output_fn dflags StopLn maybe_loc
let base_o = dropExtension output_fn
split_odir = base_o ++ "_split"
osuf = objectSuf dflags
split_odir = base_o ++ "_" ++ osuf ++ "_split"
createDirectoryHierarchy split_odir
......
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