Skip to content

Commit 3724570

Browse files
authored
Merge pull request #26 from su2code/fix_ranlib
Fix ranlib
2 parents 4212d04 + f1a06c8 commit 3724570

File tree

7 files changed

+23
-21
lines changed

7 files changed

+23
-21
lines changed

build/compileSU2.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh -l
22

33
echo "SU2 v7 Docker Compilation Container"
4-
usage="$(basename "$0") [-h] [-f build_flags] [-b branch_name]
4+
usage="$(basename "$0") [-h] [-f build_flags] [-b branch_name]
55
where:
66
-h show this help text
77
-f meson build flags (ignored if a directory \"docker_build\" is found at /src/SU2).
88
-b branch name (if not given, existing SU2 directory must be mounted in /src/SU2).
99
1010
Compiled binaries can be found at /install/. Mount that directory for access.
11-
Note: If you specify a working directory using the --workdir option for docker,
11+
Note: If you specify a working directory using the --workdir option for docker,
1212
append this directory to all paths above (e.g. use --workdir=/tmp if running in user mode)."
1313

1414
flags=""
@@ -24,7 +24,7 @@ if [ "$#" -ne 0 ]; then
2424
-f)
2525
flags=$2
2626
shift 2
27-
;;
27+
;;
2828
-b)
2929
branch=$2
3030
shift 2
@@ -48,7 +48,7 @@ if [ ! -z "$branch" ]; then
4848
# Remove any previous local repo. For non-ephemeral self-hosted runners
4949
rm -rf $name
5050
fi
51-
# Clone only the latest commit, without the Git history. It is much faster this way.
51+
# Clone only the latest commit, without the Git history. It is much faster this way.
5252
git clone --recursive --depth=1 --shallow-submodules https://github.com/su2code/SU2 $name
5353
cd $name
5454
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'
@@ -65,10 +65,10 @@ else
6565
fi
6666

6767
if [ ! -d "docker_build" ]; then
68-
./meson.py docker_build --prefix=$workdir/install $flags
68+
./meson.py setup docker_build --prefix=$workdir/install $flags
6969
else
7070
echo "Build Directory found. Ignoring build flags. To set new flags, remove docker_build directory."
71-
./meson.py docker_build --reconfigure $flags
71+
./meson.py setup docker_build --reconfigure $flags
7272
fi
7373

7474
./ninja -C docker_build install

build_cross/hostfiles/hostfile_darwin

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ c = '/osxcross/target/bin/o64-clang'
33
cpp = '/osxcross/target/bin/o64-clang++'
44
ar = '/osxcross/target/bin/x86_64-apple-darwin19-ar'
55
strip = '/osxcross/target/bin/x86_64-apple-darwin19-strip'
6-
pkgconfig = '/osxcross/target/bin/x86-apple-darwin19-pkg-config'
6+
pkg-config = '/osxcross/target/bin/x86_64-apple-darwin19-pkg-config'
7+
ranlib = '/osxcross/target/bin/x86_64-apple-darwin19-ranlib'
78

89
[host_machine]
910
system ='darwin'
10-
cpu_family = 'x86'
11-
cpu = 'i386'
11+
cpu_family = 'x86_64'
12+
cpu = 'x86_64'
1213
endian = 'little'
1314

14-
[properties]
15-
cpp_args = [ '-Wno-inconsistent-missing-override' ]
15+
[built-in options]
16+
cpp_args = ['-Wno-inconsistent-missing-override']

build_cross/hostfiles/hostfile_darwin_mpi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ c = '/osxcross/target/bin/o64-clang'
33
cpp = '/osxcross/target/bin/o64-clang++'
44
ar = '/osxcross/target/bin/x86_64-apple-darwin19-ar'
55
strip = '/osxcross/target/bin/x86_64-apple-darwin19-strip'
6-
pkgconfig = '/osxcross/target/bin/x86_64-apple-darwin19-pkg-config'
6+
pkg-config = '/osxcross/target/bin/x86_64-apple-darwin19-pkg-config'
7+
ranlib = '/osxcross/target/bin/x86_64-apple-darwin19-ranlib'
78

89
[host_machine]
910
system ='darwin'
1011
cpu_family = 'x86_64'
1112
cpu = 'x86_64'
1213
endian = 'little'
1314

14-
[properties]
15+
[built-in options]
1516
cpp_link_args = ['-L/mpich-x86_64-apple-darwin19/lib', '-lmpi', '-lpmpi']
1617
c_link_args = ['-L/mpich-x86_64-apple-darwin19/lib', '-lmpi', '-lpmpi']
1718
cpp_args = ['-Wno-inconsistent-missing-override', '-I/mpich-x86_64-apple-darwin19/include']

build_cross/hostfiles/hostfile_linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ c = 'x86_64-linux-gnu-gcc'
33
cpp = 'x86_64-linux-gnu-g++'
44
ar = 'x86_64-linux-gnu-ar'
55
strip = 'x86_64-linux-gnu-strip'
6-
pkgconfig = 'x86_64-linux-gnu-pkg-config'
6+
pkg-config = 'x86_64-linux-gnu-pkg-config'
77

88
[host_machine]
99
system ='linux'
1010
cpu_family = 'x86_64'
1111
cpu = 'x86_64'
1212
endian = 'little'
1313

14-
[properties]
14+
[built-in options]
1515
cpp_link_args = ['-static', '-static-libstdc++']
1616

1717

build_cross/hostfiles/hostfile_linux_mpi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ c = 'x86_64-linux-gnu-gcc'
33
cpp = 'x86_64-linux-gnu-g++'
44
ar = 'x86_64-linux-gnu-ar'
55
strip = 'x86_64-linux-gnu-strip'
6-
pkgconfig = 'x86_64-linux-gnu-pkg-config'
6+
pkg-config = 'x86_64-linux-gnu-pkg-config'
77

88
[host_machine]
99
system ='linux'
1010
cpu_family = 'x86_64'
1111
cpu = 'x86_64'
1212
endian = 'little'
1313

14-
[properties]
14+
[built-in options]
1515
cpp_link_args = ['-static', '-static-libstdc++', '-static-libgcc', '-L/mpich-x86_64-linux-gnu/lib', '-lmpi', '-lxml2', '-lbacktrace', '-lz', '-lpthread', '-lrt']
1616
c_link_args = ['-static', '-static-libstdc++', '-static-libgcc', '-L/mpich-x86_64-linux-gnu/lib', '-lmpi', '-lxml2', '-lbacktrace', '-lz', '-lpthread', '-lrt']
1717
cpp_args = ['-Wno-inconsistent-missing-override', '-I/mpich-x86_64-linux-gnu/include']

build_cross/hostfiles/hostfile_windows

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ c = 'x86_64-w64-mingw32-gcc'
33
cpp = 'x86_64-w64-mingw32-g++'
44
ar = 'x86_64-w64-mingw32-ar'
55
strip = 'x86_64-w64-mingw32-strip'
6-
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
6+
pkg-config = 'x86_64-w64-mingw32-pkg-config'
77

88
[host_machine]
99
system ='windows'
1010
cpu_family = 'x86_64'
1111
cpu = 'x86_64'
1212
endian = 'little'
1313

14-
[properties]
14+
[built-in options]
1515
cpp_link_args = ['-static', '-static-libstdc++']
1616

1717

build_cross/hostfiles/hostfile_windows_mpi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ c = 'x86_64-w64-mingw32-gcc'
33
cpp = 'x86_64-w64-mingw32-g++'
44
ar = 'x86_64-w64-mingw32-ar'
55
strip = 'x86_64-w64-mingw32-strip'
6-
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
6+
pkg-config = 'x86_64-w64-mingw32-pkg-config'
77

88
[host_machine]
99
system ='windows'
1010
cpu_family = 'x86_64'
1111
cpu = 'x86_64'
1212
endian = 'little'
1313

14-
[properties]
14+
[built-in options]
1515
cpp_link_args = ['-static', '-static-libstdc++', '-L/MSMPI/Lib/x64','-lmsmpi']
1616
c_link_args = ['-L/MSMPI/Lib/x64','-lmsmpi']
1717
cpp_args = ['-I/MSMPI/Include/']

0 commit comments

Comments
 (0)