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 fe45e2f commit f0ab8d0Copy full SHA for f0ab8d0
src/Language/Rust/Inline/Internal.hs
@@ -217,9 +217,8 @@ cargoFinalizer extraArgs dependencies = do
217
Just (JSString (fromJSString -> "compiler-artifact")) -> do
218
case lookup "filenames" jObj of
219
Just (JSArray values) -> forM_ values $ \case
220
- JSString (fromJSString -> rustLibFp) -> do
+ JSString (fromJSString -> rustLibFp) | ext <- takeExtension rustLibFp, ext `elem` [".a", ".o"] -> do
221
-- Move the library to a GHC temporary file
222
- let ext = takeExtension rustLibFp
223
rustLibFp' <- addTempFile ext
224
runIO $ copyFile rustLibFp rustLibFp'
225
0 commit comments