Skip to content

Commit a7ab5ef

Browse files
committed
libcamera: Require gcc 8 or newer
gcc 7 has reached end of life and isn't used as a default compiler by any of the major distributions. It has also been dropped from buildroot. Drop its support in libcamera. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
1 parent 7a118db commit a7ab5ef

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

meson.build

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ if cc.get_id() == 'clang'
8181
endif
8282

8383
if cc.get_id() == 'gcc'
84-
if cc.version().version_compare('<7')
85-
error('gcc version is too old, libcamera requires 7.0 or newer')
84+
if cc.version().version_compare('<8')
85+
error('gcc version is too old, libcamera requires 8.0 or newer')
8686
endif
8787

88-
# On gcc 7 and 8, the file system library is provided in a separate static
88+
# On gcc 8, the file system library is provided in a separate static
8989
# library.
9090
if cc.version().version_compare('<9')
9191
cpp_arguments += [
@@ -95,9 +95,8 @@ if cc.get_id() == 'gcc'
9595

9696
# gcc 7.1 introduced processor-specific ABI breakages related to parameter
9797
# passing on ARM platforms. This generates a large number of messages
98-
# during compilation with gcc >=7.1. Silence them.
99-
if (host_machine.cpu_family() == 'arm' and
100-
cc.version().version_compare('>=7.1'))
98+
# during compilation. Silence them.
99+
if host_machine.cpu_family() == 'arm'
101100
cpp_arguments += [
102101
'-Wno-psabi',
103102
]

0 commit comments

Comments
 (0)