Skip to content

Commit

Permalink
Merge pull request #120 from imaqsood/PA-6262-cmake3
Browse files Browse the repository at this point in the history
(PA-6262) Bumping up cmake version to 3 for amazon-7-aarch64 main
  • Loading branch information
imaqsood authored May 8, 2024
2 parents d7cd17f + 483591f commit 80514ed
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion configs/components/cpp-hocon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
boost_static_flag = '-DBOOST_STATIC=OFF'
special_flags = " -DENABLE_CXX_WERROR=OFF -DCMAKE_CXX_FLAGS='#{settings[:cflags]}'"
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Until we build our own gettext packages, disable using locales.
Expand Down
6 changes: 5 additions & 1 deletion configs/components/cpp-pcp-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
platform_flags = "-DCMAKE_CXX_FLAGS='#{settings[:cflags]} -Wimplicit-fallthrough=0'"
special_flags = ' -DENABLE_CXX_WERROR=OFF'
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Boost_NO_BOOST_CMAKE=ON was added while upgrading to boost
Expand Down
6 changes: 5 additions & 1 deletion configs/components/leatherman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,16 @@
# These platforms use the default OS toolchain, rather than pl-build-tools
pkg.environment 'CPPFLAGS', settings[:cppflags]
pkg.environment 'LDFLAGS', settings[:ldflags]
cmake = 'cmake'
toolchain = ''
boost_static_flag = ''

# Workaround for hanging leatherman tests (-fno-strict-overflow)
special_flags = " -DENABLE_CXX_WERROR=OFF -DCMAKE_CXX_FLAGS='#{settings[:cflags]} -fno-strict-overflow -Wno-deprecated-declarations' "
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

if platform.is_linux?
Expand Down
6 changes: 5 additions & 1 deletion configs/components/pxp-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@
special_flags += "-DCMAKE_CXX_FLAGS='#{settings[:cflags]}' -DENABLE_CXX_WERROR=OFF"
else
# These platforms use the default OS toolchain, rather than pl-build-tools
cmake = 'cmake'
toolchain = ''
special_flags += " -DCMAKE_CXX_FLAGS='#{settings[:cflags]} -Wno-deprecated -Wimplicit-fallthrough=0' "
special_flags += ' -DENABLE_CXX_WERROR=OFF ' unless platform.name =~ /sles-15/
cmake = if platform.name =~ /amazon-7-aarch64/
'/usr/bin/cmake3'
else
'cmake'
end
end

# Boost_NO_BOOST_CMAKE=ON was added while upgrading to boost
Expand Down

0 comments on commit 80514ed

Please sign in to comment.