We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd5605 commit c40a251Copy full SHA for c40a251
wpc-plugin/src/WPC/Plugin.hs
@@ -156,6 +156,12 @@ runPhaseFun phase = do
156
make output_fn relative to odir
157
copy output object file to extra-compilation-artifacts/wpc-plugin/cbits/
158
-}
159
+ -- save cbits source as well
160
+ do
161
+ let wpcForeignSrc = odir </> "extra-compilation-artifacts" </> "wpc-plugin" </> "cbits-source" </> input_fn
162
+ createDirectoryIfMissing True (takeDirectory wpcForeignSrc)
163
+ copyFile input_fn wpcForeignSrc
164
+ putStrLn $ " ###### wpc-plugin runPhaseFun copy file (from, to) " ++ show (input_fn, wpcForeignSrc)
165
pure output_fn
166
T_Hsc _hscEnv modSummary -> do
167
modifyIORef globalEnvIORef $ \d -> d {geModSummary = Just modSummary}
0 commit comments