Skip to content

Commit

Permalink
Make sure we use -isystem with Meson on some deps
Browse files Browse the repository at this point in the history
Otherwise we get warnings on external code.
  • Loading branch information
Ericson2314 committed Jul 29, 2024
1 parent 0b96c58 commit 1271732
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
8 changes: 7 additions & 1 deletion src/libexpr/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ subdir('build-utils-meson/threads')
boost = dependency(
'boost',
modules : ['container', 'context'],
include_type: 'system',
)
# boost is a public dependency, but not a pkg-config dependency unfortunately, so we
# put in `deps_other`.
Expand All @@ -55,7 +56,12 @@ if bdw_gc.found()
endif
configdata.set('HAVE_BOEHMGC', bdw_gc.found().to_int())

toml11 = dependency('toml11', version : '>=3.7.0', method : 'cmake')
toml11 = dependency(
'toml11',
version : '>=3.7.0',
method : 'cmake',
include_type: 'system',
)
deps_other += toml11

config_h = configure_file(
Expand Down
3 changes: 0 additions & 3 deletions src/libexpr/primops/fromTOML.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

#include <sstream>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-enum"
#include <toml.hpp>
#pragma GCC diagnostic pop

namespace nix {

Expand Down
3 changes: 2 additions & 1 deletion src/libstore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ subdir('build-utils-meson/threads')
boost = dependency(
'boost',
modules : ['container'],
include_type: 'system',
)
# boost is a public dependency, but not a pkg-config dependency unfortunately, so we
# put in `deps_other`.
Expand Down Expand Up @@ -113,7 +114,7 @@ if aws_s3.found()
'-laws-cpp-sdk-core',
'-laws-crt-cpp',
],
)
).as_system('system')
endif
deps_other += aws_s3

Expand Down
3 changes: 0 additions & 3 deletions src/libstore/s3-binary-cache-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "compression.hh"
#include "filetransfer.hh"

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-enum"
#include <aws/core/Aws.h>
#include <aws/core/VersionConfig.h>
#include <aws/core/auth/AWSCredentialsProvider.h>
Expand All @@ -27,7 +25,6 @@
#include <aws/s3/model/ListObjectsRequest.h>
#include <aws/s3/model/PutObjectRequest.h>
#include <aws/transfer/TransferManager.h>
#pragma GCC diagnostic pop

using namespace Aws::Transfer;

Expand Down
1 change: 1 addition & 0 deletions src/libutil/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ endif
boost = dependency(
'boost',
modules : ['context', 'coroutine'],
include_type: 'system',
)
# boost is a public dependency, but not a pkg-config dependency unfortunately, so we
# put in `deps_other`.
Expand Down

0 comments on commit 1271732

Please sign in to comment.