Commit Graph
29 Commits
Author SHA1 Message Date
Davide Pesavento 7e9d7e4f9a Switch to Face::getIoContext()
Change-Id: Ice05b0b8e9af4ed4651abcf6fc4ea6b84c34da7c
2023-11-11 15:00:03 -05:00
Davide Pesavento 816767b4c2 build: disable -Wnon-virtual-dtor compiler warning
See also named-data/NFD@0a05f7aea6

Change-Id: If93d766fa8ee2b0cb6a0eb8ff9febc2dc0a4cac0
2023-10-17 15:40:22 -04:00
Davide Pesavento dd808b0bae build: enable a few more compiler warnings
Refactor default-compiler-flags.py to reduce duplication

Change-Id: I40bf0b1d94356dcaac3bdfebd66af920ef3d5aff
2023-08-06 16:00:02 -04:00
Davide Pesavento 8148cd4a96 build: decrease level of debug information produced by default
Refs: #5279
Change-Id: Ie73909de8c51300abb00c873af722d730e6b70e1
2023-08-06 14:01:32 -04:00
Davide Pesavento ad26607467 build: drop official support for Ubuntu 18.04 and macOS 10.15
Increase the minimum required version of clang to 7.0 on linux, because
older versions fail to compile libstdc++'s implementation of std::variant

Change-Id: I5cde13b8789fceb5715d5496aeed7f9050ec801d
2023-03-07 21:14:42 -05:00
Davide Pesavento 3b4ee2f130 Prepare release 22.12
Refs: #5250
Change-Id: Icc0cfa76328fd4faef152edc3330fa2c95857668
2022-12-31 01:55:06 -05:00
Davide Pesavento 3d7b03372b build: link with lld if available
Change-Id: I14c83c7038abd5d1b58eee3d8a3b6db127ef4b58
2022-10-05 15:30:02 -04:00
Davide Pesavento 423e58a503 build+ci: support macOS on arm64
Refs: #5135
Change-Id: I25a6a77eb6c60e00548704eaea88eb1ca2afc200
2022-08-12 15:51:42 -04:00
Davide Pesavento 96412a18d8 build: align minimum clang dependency with ndn-cxx
ndn-cxx requires clang 6 or later, so there's no point
supporting older versions in ndn-tools

Change-Id: I7be683abd4fce12c85187c0b5abf2ee288bbe908
2022-03-05 14:45:04 -05:00
Davide Pesavento b04c52b044 build: raise minimum build requirements
* Hard-depend on gcc >= 7.4 and clang >= 5.0, which have
   almost complete C++17 support
 * Require Xcode 10 on macOS but recommend 11.3 or later
 * Boost >= 1.65.1 is now a hard requirement

Change-Id: I76eb915b226e8f5dd5c5fdbde9b23befc2a37c90
2022-02-20 15:40:02 -05:00
Davide Pesavento b3570c614a build: switch to C++17
Change-Id: Id6217b5c993f3e4726e89773128b565e5f136bb6
2022-02-20 15:35:23 -05:00
Davide Pesavento b07d7a96da build: align minimum build dependencies with ndn-cxx
* Recommend boost >= 1.65.1 and gcc >= 7.4.0
 * Require clang >= 4.0, or Xcode >= 9.0 on macOS
 * Silence an ABI-related diagnostic message from gcc on armv7

Refs: #5087, #5106
Change-Id: I88ef0e0f183736f19ac414a84baebb0e1073381b
2020-05-14 02:25:24 -04:00
Davide Pesavento e1b18a6856 build: ensure /usr/local/include is treated as system include path on FreeBSD
Also use the LLD linker by default on FreeBSD.

Change-Id: Ic50f9478fdce0c34c52e8ad2f743391f23c1b35f
Refs: #4790
2018-12-19 01:17:42 -05:00
Davide Pesavento 88beb4d0f5 build+ci: sync compilation flags and Travis-CI matrix with ndn-cxx
Change-Id: If44e87e190fdf74f32adf38546109bfce618c5ea
Refs: #4721
2018-09-11 18:14:18 -04:00
Davide Pesavento 302941eec2 build: require clang >= 3.6
Change-Id: I609c6ae59ce78db79bb686d2a53e9f1f26dcaaef
2018-07-22 00:36:51 -04:00
Davide Pesavento 60f8cc12e2 build: switch to C++14
Cleanup core/common.hpp

Change-Id: I6566b0224e24716691d5896462aa7613547ed950
Refs: #3076
2018-06-06 16:25:38 -04:00
Davide Pesavento 26ea1ac2aa build: require gcc >= 5.3
Change-Id: Ie8877a9047c96030f138745a19768fcfa11da855
Refs: #4462
2018-05-10 20:30:47 -04:00
Alexander Afanasyev 20c85cb868 build: Cleanup and update of build scripts
Change-Id: I7fb5b8696d3b068249ae16b117bd27646d990dc3
2018-03-11 17:16:15 -04:00
Alexander Afanasyev 11e74eb20f build: Add -isystem and set specialized flags as a last configuration step
This change prevents global flags from interacting with library/feature
detection scripts.

Change-Id: Ib7b1d230f77668cad31cffdd18962cba41c856e9
Refs: #4296
2017-09-22 12:56:21 -04:00
Davide Pesavento 887336ca8d chunks: declare DiscoverVersion destructor virtual
The concrete subclasses are deleted polymorphically
through a unique_ptr<DiscoverVersion>.

Also add -Wnon-virtual-dtor to the default CXXFLAGS
to prevent this from happening in the future.

Change-Id: If00a99566a54c7af4cd27df6fe68dcdef4cb4e82
2017-09-19 15:25:23 -04:00
Davide Pesavento c07027069f Fix compilation with Boost 1.65.0
Also sync default-compiler-flags.py with NFD

Change-Id: Ib39118567428e8fe2ac73f2b7cbd96fe1a9598b8
Refs: #4259, #4248
2017-08-25 23:43:02 -04:00
Davide Pesavento dd0e1959bb build: sync default-compiler-flags.py with ndn-cxx
- explicitly require clang >= 3.4
 - move -Og to basic debug flags (supported by clang since 4.0)
 - use gold linker and enable linker optimizations

Change-Id: I26d8d6d6ea16b1878831cb3a7259541e147b8b0e
2017-06-24 13:37:13 -04:00
Alexander Afanasyev fc4aa0d727 build: Do not fail the build in debug mode when using deprecated declarations
The original motivation of this change was to avoid compilation failure
in debug mode on macOS 10.12.

Change-Id: I881473fb166e2d3da62f80bb67331e86c422fc8d
Refs: #3795
2016-10-15 00:57:33 +00:00
Davide Pesavento 89d9175e7c build: add waf-tool to simplify building with AddressSanitizer & friends
Change-Id: If36e52f5e49d94ad5846165c50504d06d7d3c4d0
Refs: #2589
2016-08-14 11:34:09 +02:00
Davide Pesavento 52401cea4d build: require gcc >= 4.8.2 and boost >= 1.54.0
Change-Id: I075413f6dfa1183682c4432cf96a47323cc6c43a
Refs: #3599
2016-05-03 18:41:32 +02:00
Vince Lehman 277ecf085e dump: Capture and print network NACK packets
refs: #3463

Change-Id: I3aed0d3668378305404f9713cc110e13eec434e5
2016-03-06 22:01:16 -08:00
Davide Pesavento 3e79c9cda4 build: enable -Wextra by default
Change-Id: I0e4615d4dfbbf0a7bf3e509bf2ad3d72b92993cb
Refs: #3293
2015-11-01 21:40:58 +01:00
Junxiao Shi c8a0a25a67 build: disable clang's unused-local-typedef warning and keyword-macro error
unused-local-typedef is disabled completely.
keyword-macro is downgraded from an error to a warning.

This commit also enables color diagnostics on release builds.

refs #3209 #3235

Change-Id: Ibce2da95dffb88abc384e6c98911d4ac900a880a
2015-10-05 16:43:34 -07:00
Junxiao Shi f71912475c build: add Waf build system
refs #2524

Change-Id: I948e21761403de2b8aeaca5fe92b68c79eebea9e
2015-03-19 05:53:41 -07:00