lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master fc0987e 18/30: Disable clang-specific warning


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fc0987e 18/30: Disable clang-specific warning when compiling Boost libraries
Date: Wed, 24 Mar 2021 15:31:09 -0400 (EDT)

branch: master
commit fc0987e9f00cd2cdeab868a66f68aeee08332958
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Disable clang-specific warning when compiling Boost libraries
    
    Also give some informational messages while building them.
---
 .github/workflows/ci.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ac712b2..684fa17 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -157,9 +157,17 @@ jobs:
       - name: Build Boost libraries
         if: matrix.autotools
         run: |
+          # Define flags to avoid warnings in Boost code we don't care about.
+          boost_cxxflags="-Wno-deprecated-declarations -DBOOST_NO_AUTO_PTR 
-Dregister="
+          if [ "${{ matrix.compiler }}" = clang ]; then
+            boost_cxxflags="${boost_cxxflags} -Wno-parentheses-equality"
+          fi
+
           for lib in regex filesystem; do
             cd /opt/lmi/third_party/src/boost/libs/${lib}/src
-            ${CXX-${LMI_COMPILER}} -std=c++17 -Wno-deprecated-declarations 
-DBOOST_NO_AUTO_PTR -Dregister='' -fPIC -I../../.. -c *.cpp
+            echo "Compiling $lib sources"
+            ${CXX-${LMI_COMPILER}} -std=c++17 -fPIC $(echo ${boost_cxxflags}) 
-I../../.. -c *.cpp
+            echo "Creating libboost_${lib}.a from" *.o
             ar rc 
/opt/lmi/local/${LMI_COMPILER}_${LMI_TRIPLET}/lib/libboost_${lib}.a *.o
           done
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]