Skip to content

Commit b745a82

Browse files
committed
Merge branch 'upstream_master' into refactor-run-cmd
2 parents 1440469 + d569a89 commit b745a82

File tree

5 files changed

+368
-3
lines changed

5 files changed

+368
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ to run, as can `fpm test`; like `fpm run specific_executable`. Command line
8181
arguments can also be passed to the executable(s) or test(s) with the option
8282
`--args "some arguments"`.
8383

84-
See additional instructions in the [Packaging guide](PACKAGING.md).
84+
See additional instructions in the [Packaging guide](PACKAGING.md) or
85+
the [manifest reference](manifest-reference.md).

bootstrap/src/Build.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ buildProgram programDirectory' libraryDirectories sourceExtensions buildDirector
105105
want [buildDirectory </> programName <.> exe]
106106
buildDirectory </> programName <.> exe %> \executable -> do
107107
need objectFiles
108+
need archives
108109
cmd compiler objectFiles archives ["-o", executable] flags
109110
mapM_ infoToRule compileTimeInfo
110111

fpm/src/fpm_backend.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ subroutine build_package(model)
3838
linking = " "
3939
end if
4040

41+
linking = linking//" "//model%link_flags
42+
4143
do i=1,size(model%targets)
4244

4345
call build_target(model,model%targets(i)%ptr,linking)

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ else
1919
fi
2020
fi
2121

22-
if [[ -x "$install_path/fpm" ]]; then
22+
if [ -x "$install_path/fpm" ]; then
2323
echo "Overwriting existing fpm installation in $install_path"
2424
fi
2525

2626
cd bootstrap
2727
stack install
2828

29-
if [[ -x "$install_path/fpm" ]]; then
29+
if [ -x "$install_path/fpm" ]; then
3030
echo "fpm installed successfully to $install_path"
3131
else
3232
echo "fpm installation unsuccessful: fpm not found in $install_path"

0 commit comments

Comments
 (0)