Skip to content

Commit fa9a499

Browse files
committed
Make sure to always add a leading space to compile flags
1 parent a50a1b6 commit fa9a499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fpm/src/fpm_command_line.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,15 +471,15 @@ subroutine check_build_vals()
471471
val_compiler='gfortran'
472472
endif
473473

474-
val_flag = sget('flag')
474+
val_flag = " " // sget('flag')
475475
val_profile = sget('profile')
476476
if (val_flag == '') then
477477
call get_default_compile_flags(val_compiler, val_profile == "release", val_flag)
478478
else
479479
select case(val_profile)
480480
case("release", "debug")
481481
call get_default_compile_flags(val_compiler, val_profile == "release", flags)
482-
val_flag = flags // " " // val_flag
482+
val_flag = flags // val_flag
483483
end select
484484
end if
485485
allocate(character(len=16) :: val_build)

0 commit comments

Comments
 (0)