]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2160 in SNORT/snort3 from ~SELYSENK/snort3:ccache to master
authorMichael Altizer (mialtize) <mialtize@cisco.com>
Tue, 28 Apr 2020 16:18:26 +0000 (16:18 +0000)
committerMichael Altizer (mialtize) <mialtize@cisco.com>
Tue, 28 Apr 2020 16:18:26 +0000 (16:18 +0000)
Squashed commit of the following:

commit 3b028188e6ee898c891f27ab7950251db147e94d
Author: Serhii Lysenko <selysenk@cisco.com>
Date:   Tue Apr 14 05:37:57 2020 -0400

    build: add support for ccache

configure_cmake.sh

index 69d32f3a1ecaaf25fa422c176be9a334f82eab24..64d97e895ec9dcf786c9fd95089bdae54d16907b 100755 (executable)
@@ -66,6 +66,7 @@ Optional Features:
                             enable third party appid
     --enable-unit-tests     build unit tests
     --enable-piglet         build piglet test harness
+    --enable-ccache         enable ccache support
     --disable-static-daq    link static DAQ modules
     --disable-html-docs     don't create the HTML documentation
     --disable-pdf-docs      don't create the PDF documentation
@@ -318,6 +319,10 @@ while [ $# -ne 0 ]; do
         --disable-piglet)
             append_cache_entry ENABLE_PIGLET            BOOL false
             ;;
+        --enable-ccache)
+            append_cache_entry CMAKE_CXX_COMPILER_LAUNCHER STRING ccache
+            append_cache_entry CMAKE_C_COMPILER_LAUNCHER STRING ccache
+            ;;
         --disable-static-daq)
             append_cache_entry ENABLE_STATIC_DAQ        BOOL false
             ;;