Skip to content

Commit

Permalink
Merge pull request #32 from Pesa/build-reqs
Browse files Browse the repository at this point in the history
Align build requirements with ndn-cxx
  • Loading branch information
pulsejet authored Dec 16, 2024
2 parents 1bf5c25 + 0a447fc commit e502c2a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI
on:
push:
branches:
- '**'
pull_request:
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions .jenkins.d/00-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ APT_PKGS=(
libboost-chrono-dev
libboost-date-time-dev
libboost-dev
libboost-filesystem-dev
libboost-iostreams-dev
libboost-log-dev
libboost-program-options-dev
Expand All @@ -19,7 +18,7 @@ APT_PKGS=(
pkg-config
python3
)
FORMULAE=(boost openssl pkg-config)
FORMULAE=(boost openssl pkgconf)
PIP_PKGS=()
case $JOB_NAME in
*code-coverage)
Expand All @@ -35,6 +34,7 @@ esac
set -x

if [[ $ID == macos ]]; then
export HOMEBREW_NO_ENV_HINTS=1
if [[ -n $GITHUB_ACTIONS ]]; then
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
fi
Expand Down
23 changes: 13 additions & 10 deletions .waf-tools/default-compiler-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,27 @@ def configure(conf):
errmsg = ''
warnmsg = ''
if cxx == 'gcc':
if ccver < (7, 4, 0):
if ccver < (9, 1, 0):
errmsg = ('The version of gcc you are using is too old.\n'
'The minimum supported gcc version is 9.3.')
elif ccver < (9, 3, 0):
warnmsg = ('Using a version of gcc older than 9.3 is not '
'The minimum supported gcc version is 10.2.')
elif ccver < (10, 2, 0):
warnmsg = ('Using a version of gcc older than 10.2 is not '
'officially supported and may result in build failures.')
conf.flags = GccFlags()
elif cxx == 'clang':
if Utils.unversioned_sys_platform() == 'darwin':
if ccver < (10, 0, 0):
if ccver < (11, 0, 0):
errmsg = ('The version of Xcode you are using is too old.\n'
'The minimum supported Xcode version is 12.4.')
elif ccver < (12, 0, 0):
warnmsg = ('Using a version of Xcode older than 12.4 is not '
'The minimum supported Xcode version is 13.0.')
elif ccver < (13, 0, 0):
warnmsg = ('Using a version of Xcode older than 13.0 is not '
'officially supported and may result in build failures.')
elif ccver < (7, 0, 0):
errmsg = ('The version of clang you are using is too old.\n'
'The minimum supported clang version is 7.0.')
'The minimum supported clang version is 10.0.')
elif ccver < (10, 0, 0):
warnmsg = ('Using a version of clang older than 10.0 is not '
'officially supported and may result in build failures.')
conf.flags = ClangFlags()
else:
warnmsg = f'{cxx} compiler is unsupported'
Expand Down Expand Up @@ -133,7 +136,7 @@ def getDebugFlags(self, conf):
return {
'CXXFLAGS': [],
'LINKFLAGS': [],
'DEFINES': ['BOOST_ASIO_NO_DEPRECATED', 'BOOST_FILESYSTEM_NO_DEPRECATED'],
'DEFINES': ['BOOST_ASIO_NO_DEPRECATED'],
}

def getOptimizedFlags(self, conf):
Expand Down

0 comments on commit e502c2a

Please sign in to comment.