Fix ob profile from subdirectory
commit6b15a33987f905475161c62ad6fde21dda57410a
authorElliot Cameron <eacameron@gmail.com>
dateMon 24 Feb 2020, 14:05 (7 years ago)
parent795fd9d
lib/command/src/Obelisk/Command/Run.hs+1−1
@@ -101,7 +101,7 @@ profile profileBasePattern rtsFlags = withProjectRoot "." $ \root -> do
101101
102102 putLog Debug $ T.pack $ "Storing profiled data under base name of " <> profileBaseName
103103
104− liftIO $ createDirectoryIfMissing True $ takeDirectory profileBaseName
104+ liftIO $ createDirectoryIfMissing True $ takeDirectory $ root </> profileBaseName
105105
106106 outPath <- withSpinner "Building profiled executable" $
107107 fmap (T.unpack . T.strip) $ readProcessAndLogStderr Debug $ setCwd (Just root) $ nixCmdProc $