Skip to content

Commit

Permalink
fix: artifact-dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
diS3e committed Jan 20, 2025
1 parent d91d467 commit f6df7c7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ main = defaultMainWithHooks simpleUserHooks
preConf = buildRustLib
}

infi = do
infi

buildRustLib :: Args -> a -> IO HookedBuildInfo
buildRustLib _ flags = do

Expand All @@ -28,10 +25,6 @@ buildRustLib _ flags = do

isNotDependency <- doesFileExist (pathToDistNewstyle ++ "rust-wrapper/Cargo.toml")

-- infi
print $ file
print $ pathToDistNewstyle

pathToRustWrapper <- if isNotDependency
then return pathToDistNewstyle
else do
Expand All @@ -44,11 +37,9 @@ buildRustLib _ flags = do
print $ depLibs
return $ pathToDistNewstyle ++ "dist-newstyle/src/" ++ (head depLibs) ++ "/"

putStrLn $ pathToRustWrapper

buildResult <- system ("cargo +nightly build --release " ++
"--manifest-path " ++ pathToRustWrapper ++ "rust-wrapper/Cargo.toml " ++
"--artifact-dir=" ++ pathToRustWrapper ++ "libs/ -Z unstable-options"
"--artifact-dir=" ++ pathToDistNewstyle ++ "libs/ -Z unstable-options"
)

case buildResult of
Expand Down

0 comments on commit f6df7c7

Please sign in to comment.