Skip to content

Commit cb55ff0

Browse files
committed
Fix #1014 build with ifx
1 parent 7535cab commit cb55ff0

20 files changed

+63
-47
lines changed

.github/workflows/meta.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ on:
44
# On push, only run if any of the metapackage files has changed
55
push:
66
paths:
7-
- 'src/*meta*.f90'
7+
- 'src/*meta*.f90'
88
- 'src/fpm/*meta*.f90'
99
- 'src/fpm/manifest/*meta*.f90'
1010
- 'src/ci/meta_tests.sh'
1111
- 'src/.github/workflows/meta.yml'
12-
# Always run on PR or release
12+
# Always run on PR or release
1313
pull_request:
1414
release:
1515
types: [published]
1616
# Allow manual triggering
17-
workflow_dispatch:
17+
workflow_dispatch:
1818

1919
env:
2020
CI: "ON" # We can detect this in the build system and other vendors implement it
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: (Ubuntu/macOS) setup gcc version
5353
if: contains(matrix.os,'ubuntu') || contains(matrix.os,'macos')
54-
run: |
54+
run: |
5555
echo "GCC_V=14" >> $GITHUB_ENV
5656
5757
- name: (Windows) Install MSYS2
@@ -84,7 +84,7 @@ jobs:
8484
Remove-Item "oneAPI" -Force -Recurse
8585
8686
- name: (Ubuntu) Install gfortran
87-
if: contains(matrix.os,'ubuntu')
87+
if: contains(matrix.os,'ubuntu')
8888
run: |
8989
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
9090
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
@@ -115,16 +115,16 @@ jobs:
115115
uses: fortran-lang/[email protected]
116116
id: setup-fortran
117117
with:
118-
compiler: intel
119-
version: 2024.1.0
118+
compiler: intel
119+
version: 2024.1.0
120120

121-
- name: (Ubuntu) finalize oneAPI environment
121+
- name: (Ubuntu) finalize oneAPI environment
122122
if: contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
123123
run: |
124124
# Install MPI
125125
sudo apt-get install -y -q intel-oneapi-mpi-devel ninja-build cmake
126126
source /opt/intel/oneapi/setvars.sh --force
127-
printenv >> $GITHUB_ENV
127+
printenv >> $GITHUB_ENV
128128
# To run HDF5 with oneAPI, we need to build it from source. Use CMake to generate pkg-config info
129129
curl -O -L https://github.com/HDFGroup/hdf5/archive/refs/tags/snapshot-1.14.tar.gz
130130
tar zxf snapshot-1.14.tar.gz
@@ -214,8 +214,8 @@ jobs:
214214
215215
- name: (macOS) Install homebrew HDF5
216216
if: contains(matrix.os,'macos')
217-
run: |
218-
brew install hdf5
217+
run: |
218+
brew install hdf5
219219
220220
# Phase 1: Bootstrap fpm with existing version
221221
- name: Install fpm
@@ -229,8 +229,8 @@ jobs:
229229
mv $(which fpm) fpm-bootstrap${{ matrix.exe }}
230230
echo "BOOTSTRAP=$PWD/fpm-bootstrap" >> $GITHUB_ENV
231231
232-
- name: (macOS/Ubuntu) Use gcc/g++ instead of Clang for C/C++ / ifx to build fpm
233-
if: contains(matrix.os,'macOS') || contains(matrix.os,'ubuntu')
232+
- name: (macOS) Use gcc/g++ instead of Clang for C/C++ to build fpm
233+
if: contains(matrix.os,'macOS')
234234
shell: bash
235235
run: |
236236
echo "FPM_FC=gfortran-${{ env.GCC_V }}" >> $GITHUB_ENV

src/fpm/cmd/new.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,8 @@ end function git_metadata
627627

628628
subroutine create_verified_basic_manifest(filename)
629629
!> create a basic but verified default manifest file
630-
use fpm_toml, only : toml_table, toml_serialize, set_value
630+
use tomlf, only : toml_table, toml_serialize
631+
use fpm_toml, only : set_value
631632
use fpm_manifest_package, only : package_config_t, new_package
632633
use fpm_error, only : error_t
633634
implicit none

src/fpm/dependency.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ module fpm_dependency
6565
use fpm_manifest_dependency, only: manifest_has_changed, dependency_destroy
6666
use fpm_manifest_preprocess, only: operator(==)
6767
use fpm_strings, only: string_t, operator(.in.)
68-
use fpm_toml, only: toml_table, toml_key, toml_error, toml_serialize, &
69-
get_value, set_value, add_table, toml_load, toml_stat, set_string
68+
use tomlf, only: toml_table, toml_key, toml_error, toml_load, toml_stat
69+
use fpm_toml, only: toml_serialize, get_value, set_value, add_table, set_string
7070
use fpm_versioning, only: version_t, new_version
7171
use fpm_settings, only: fpm_global_settings, get_global_settings, official_registry_base_url
7272
use fpm_downloader, only: downloader_t

src/fpm/git.f90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
module fpm_git
33
use fpm_error, only: error_t, fatal_error
44
use fpm_filesystem, only : get_temp_filename, getline, join_path, execute_and_read_output, run
5-
use fpm_toml, only: serializable_t, toml_table, get_value, set_value, toml_stat, set_string
5+
use tomlf, only: toml_table, toml_stat
6+
use fpm_toml, only: serializable_t, get_value, set_value, set_string
67
implicit none
78

89
public :: git_target_t, git_target_default, git_target_branch, git_target_tag, git_target_revision, git_revision, &
@@ -434,7 +435,7 @@ subroutine git_archive(source, destination, ref, additional_files, verbose, erro
434435
end if
435436

436437
allocate(character(len=0) :: add_files)
437-
if (present(additional_files)) then
438+
if (present(additional_files)) then
438439
do i=1,size(additional_files)
439440
add_files = trim(add_files)//' --add-file='//adjustl(additional_files(i))
440441
end do
@@ -446,7 +447,7 @@ subroutine git_archive(source, destination, ref, additional_files, verbose, erro
446447
& -o '//destination, &
447448
& echo=verbose, &
448449
& exitstat=stat)
449-
450+
450451
if (stat /= 0) then
451452
call fatal_error(error, "Error packing '"//source//"'."); return
452453
end if

src/fpm/manifest/build.f90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
module fpm_manifest_build
1313
use fpm_error, only : error_t, syntax_error, fatal_error
1414
use fpm_strings, only : string_t, len_trim, is_valid_module_prefix, operator(==)
15-
use fpm_toml, only : toml_table, toml_key, toml_stat, get_value, get_list, serializable_t, &
16-
set_value, set_string, set_list
15+
use tomlf, only: toml_table, toml_key, toml_stat
16+
use fpm_toml, only : serializable_t, get_value, get_list, set_value, set_string, set_list
17+
1718
implicit none
1819
private
1920

src/fpm/manifest/dependency.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ module fpm_manifest_dependency
2626
use fpm_error, only: error_t, syntax_error, fatal_error
2727
use fpm_git, only: git_target_t, git_target_tag, git_target_branch, &
2828
& git_target_revision, git_target_default, git_matches_manifest
29-
use fpm_toml, only: toml_table, toml_key, toml_stat, get_value, check_keys, serializable_t, add_table, &
29+
use tomlf, only: toml_table, toml_key, toml_stat
30+
use fpm_toml, only: get_value, check_keys, serializable_t, add_table, &
3031
& set_value, set_string
3132
use fpm_filesystem, only: windows_path, join_path
3233
use fpm_environment, only: get_os_type, OS_WINDOWS

src/fpm/manifest/example.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ module fpm_manifest_example
1818
use fpm_manifest_dependency, only : dependency_config_t, new_dependencies
1919
use fpm_manifest_executable, only : executable_config_t
2020
use fpm_error, only : error_t, syntax_error, bad_name_error
21-
use fpm_toml, only : toml_table, toml_key, toml_stat, get_value, get_list
21+
use tomlf, only : toml_table, toml_key, toml_stat
22+
use fpm_toml, only : get_value, get_list
2223
implicit none
2324
private
2425

src/fpm/manifest/executable.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module fpm_manifest_executable
1414
use fpm_manifest_dependency, only : dependency_config_t, new_dependencies, resize
1515
use fpm_error, only : error_t, syntax_error, bad_name_error, fatal_error
1616
use fpm_strings, only : string_t, operator(==)
17-
use fpm_toml, only : toml_table, toml_key, toml_stat, get_value, get_list, serializable_t, add_table, &
17+
use tomlf, only : toml_table, toml_key, toml_stat
18+
use fpm_toml, only : get_value, get_list, serializable_t, add_table, &
1819
set_string, set_list
1920
implicit none
2021
private

src/fpm/manifest/fortran.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module fpm_manifest_fortran
22
use fpm_error, only : error_t, syntax_error, fatal_error
3-
use fpm_toml, only : toml_table, toml_key, toml_stat, get_value, serializable_t, set_value, set_string
3+
use tomlf, only : toml_table, toml_key, toml_stat
4+
use fpm_toml, only : get_value, serializable_t, set_value, set_string
45
implicit none
56
private
67

src/fpm/manifest/install.f90

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
!>```
88
module fpm_manifest_install
99
use fpm_error, only : error_t, fatal_error, syntax_error
10-
use fpm_toml, only : toml_table, toml_key, toml_stat, get_value, set_value, serializable_t
10+
use tomlf, only : toml_table, toml_key, toml_stat
11+
use fpm_toml, only : get_value, set_value, serializable_t
1112
implicit none
1213
private
1314

@@ -18,7 +19,7 @@ module fpm_manifest_install
1819

1920
!> Install library with this project
2021
logical :: library = .false.
21-
22+
2223
!> Install tests with this project
2324
logical :: test = .false.
2425

@@ -80,7 +81,7 @@ subroutine check(table, error)
8081
call syntax_error(error, "Key "//list(ikey)%key//" is not allowed in install table")
8182
exit
8283
case("library","test")
83-
continue
84+
continue
8485
end select
8586
end do
8687
if (allocated(error)) return
@@ -150,7 +151,7 @@ subroutine dump_to_toml(self, table, error)
150151

151152
call set_value(table, "library", self%library, error, class_name)
152153
if (allocated(error)) return
153-
154+
154155
call set_value(table, "test", self%test, error, class_name)
155156
if (allocated(error)) return
156157

0 commit comments

Comments
 (0)