testing: try clang-6.0 again, but with libc++
authorMichael Wallner <mike@php.net>
Mon, 5 Oct 2020 09:05:46 +0000 (11:05 +0200)
committerMichael Wallner <mike@php.net>
Mon, 5 Oct 2020 09:05:46 +0000 (11:05 +0200)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml
test/lib/Server.hpp

index 310d1eda6c8a7e5f6e9b7002c809c42dea320333..489230fb330f48a6bd4ba1e9ec3d471e6c87f996 100755 (executable)
@@ -3,7 +3,6 @@
 
 echo "# Generated file; do not edit!\n";
 
-const PRE = "     ";
 const DEF = [
   "os" => "Linux",
   "Linux" => "ubuntu-20.04",
@@ -21,20 +20,19 @@ const DEF = [
     "CXX"  => "clang++",
   ],
 ];
-const APT = [
+const ENV = [
   "ubuntu-20.04" => [
     "gnu" => [
       "new" => [
-        "CC" => "gcc-10",
-        "CXX" => "g++-10",
+        "INSTALL_CC" => "gcc-10",
+        "INSTALL_CXX" => "g++-10",
       ]
     ]
   ],
   "ubuntu-18.04" => [
     "clang" => [
       "old" => [
-        "CC" => "clang-7",
-        "CXX" => "clang-7"
+        "CXXFLAGS" => "-stdlib=libc++"
       ]
     ]
   ]
@@ -72,7 +70,7 @@ const MAP = [
           'env.CC_VER' => [
             "new"  => "-9",
             "cur"  => "-8",
-            "old"  => "-7"
+            "old"  => "-6.0"
           ]
         ]
       ]
@@ -95,18 +93,18 @@ function steps_setenv($splat_map = null) {
               foreach ($cc_vers as $cc_ver => $ver) {
                 if (!$splat_map && DEF[DEF[DEF[DEF["os"]]]]["ver"] != $cc_ver) continue;
 ?>
-<?=PRE?> - name: Prepare environment (<?= "for $cc_ver $cc_vnd on $os_ver" ?>)
-<?=PRE?>   if: (<?="$os_is=='$os_ver') && ($cc_vnd_is=='$cc_vnd') && ($cc_ver_is=='$cc_ver'"?>)
-<?=PRE?>   run: |
-<?=PRE?>     echo CC=<?=DEF[$cc_vnd]["CC"] . $ver?> >> ${GITHUB_ENV}
-<?=PRE?>     echo CXX=<?=DEF[$cc_vnd]["CXX"] . $ver?> >> ${GITHUB_ENV}
+      - name: Prepare environment (<?= "for $cc_ver $cc_vnd on $os_ver" ?>)
+        if: (<?="$os_is=='$os_ver') && ($cc_vnd_is=='$cc_vnd') && ($cc_ver_is=='$cc_ver'"?>)
+        run: |
+          echo "CC='<?=DEF[$cc_vnd]["CC"] . $ver?>'" >> ${GITHUB_ENV}
+          echo "CXX='<?=DEF[$cc_vnd]["CXX"] . $ver?>'" >> ${GITHUB_ENV}
 <?php
-                if (isset(APT[$os_ver][$cc_vnd][$cc_ver])) {
-                  $dep = APT[$os_ver][$cc_vnd][$cc_ver];
+                if (isset(ENV[$os_ver][$cc_vnd][$cc_ver])) {
+                  foreach (ENV[$os_ver][$cc_vnd][$cc_ver] as $env => $val) {
 ?>
-<?=PRE?>     echo INSTALL_CC='<?=$dep["CC"]?>' >> ${GITHUB_ENV}
-<?=PRE?>     echo INSTALL_CXX='<?=$dep["CXX"]?>' >> ${GITHUB_ENV}
+          echo "<?=$env?>='<?=$val?>'" >> ${GITHUB_ENV}}
 <?php
+                  }
                 }
               }
             }
@@ -119,36 +117,58 @@ function steps_setenv($splat_map = null) {
 
 function steps_getdeps() {
 ?>
-<?=PRE?> - name: Install dependencies (Linux)
-<?=PRE?>   if: runner.os == 'Linux'
-<?=PRE?>   run: |
-<?=PRE?>     sudo apt-get install \
-<?=PRE?>       libevent-dev \
-<?=PRE?>       libsasl2-dev \
-<?=PRE?>       ${INSTALL_MEMCACHED} \
-<?=PRE?>       ${INSTALL_CC} ${INSTALL_CXX}
-<?=PRE?>     sudo systemctl stop memcached || true
-<?=PRE?> - name: Install dependencies (Mac)
-<?=PRE?>   if: runner.os == 'macOS'
-<?=PRE?>   run: |
-<?=PRE?>     brew install bison flex ${INSTALL_MEMCACHED}
-<?=PRE?>     brew services stop memcached || true
+      - name: Install dependencies (Linux)
+        if: runner.os == 'Linux'
+        run: |
+          sudo apt-get install \
+            libevent-dev \
+            libsasl2-dev \
+            ${INSTALL_MEMCACHED} \
+            ${INSTALL_CC} ${INSTALL_CXX}
+          sudo systemctl stop memcached || true
+      - name: Install dependencies (Mac)
+        if: runner.os == 'macOS'
+        run: |
+          brew install bison flex ${INSTALL_MEMCACHED}
+          brew services stop memcached || true
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
+      - name: Build memcached
+        run: |
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
 <?php
 }
 
 function steps_build() {
 ?>
-<?=PRE?> - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
-<?=PRE?>   run: cmake -S . -B build
-<?=PRE?> - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
-<?=PRE?>   run: make -C build -j2 all
-<?=PRE?> - name: Test
-<?=PRE?>   run: make -C build -j2 test
-<?=PRE?> - name: Install
-<?=PRE?>   run: make -C build -j2 install DESTDIR=.
-<?=PRE?> - name: Failed tests log
-<?=PRE?>   if: ${{ failure() }}
-<?=PRE?>   run: cat build/Testing/Temporary/LastTest.log || true
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
+        run: cmake -S . -B build
+      - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
+        run: make -C build -j2 all
+      - name: Test
+        run: make -C build -j2 test
+      - name: Install
+        run: make -C build -j2 install DESTDIR=.
+      - name: Failed tests log
+        if: ${{ failure() }}
+        run: cat build/Testing/Temporary/LastTest.log || true
 <?php
 }
 
@@ -200,7 +220,6 @@ jobs:
     env:
       INSTALL_MEMCACHED:
       MEMCACHED_PREFIX: /tmp
-      MEMCACHED_BINARY: /tmp/bin/memcached
       ENABLE_SASL:      "ON"
     steps:
       - uses: actions/checkout@v2
@@ -209,23 +228,7 @@ jobs:
           repository: memcached/memcached
           path: memcached
           ref: 1.6.7
-<?php steps_setenv(); ?>
-<?php steps_getdeps(); ?>
-      - name: Build memcached
-        run: |
-          cd memcached
-          ./autogen.sh
-          ./configure CFLAGS="-O2 -pipe" \
-            --prefix=${MEMCACHED_PREFIX} \
-            --enable-sasl \
-            --enable-sasl-pwdb \
-            --disable-docs \
-            --disable-coverage \
-            --disable-dependency-tracking
-          make -j2
-          make install
-          cd ..
-<?php steps_build(); ?>
+<?php steps(); ?>
 
   # sanitizer build
   ci-san:
@@ -254,8 +257,6 @@ jobs:
     name: ci-dbg (<?=DEF["macOS"]?>, <?=DEF[DEF["macOS"]]?>, <?=DEF[DEF[DEF["macOS"]]]["ver"]?>)
     runs-on: <?=DEF["macOS"]?> #
     continue-on-error: true
-    env:
-      MEMCACHED_BINARY: /usr/local/bin/memcached
     steps:
       - uses: actions/checkout@v2
 <?php steps(false); ?>
index c2e704e9581dd85a8f6f77dedc8f66b75d545930..32bfd9977820d8dd0c042e1afd601b486a333918 100644 (file)
@@ -34,7 +34,6 @@ jobs:
     env:
       INSTALL_MEMCACHED:
       MEMCACHED_PREFIX: /tmp
-      MEMCACHED_BINARY: /tmp/bin/memcached
       ENABLE_SASL:      "ON"
     steps:
       - uses: actions/checkout@v2
@@ -46,8 +45,8 @@ jobs:
       - name: Prepare environment (for cur gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
         run: |
-          echo CC=gcc-9 >> ${GITHUB_ENV}
-          echo CXX=g++-9 >> ${GITHUB_ENV}
+          echo "CC='gcc-9'" >> ${GITHUB_ENV}
+          echo "CXX='g++-9'" >> ${GITHUB_ENV}
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -62,21 +61,29 @@ jobs:
         run: |
           brew install bison flex ${INSTALL_MEMCACHED}
           brew services stop memcached || true
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
       - name: Build memcached
         run: |
-          cd memcached
-          ./autogen.sh
-          ./configure CFLAGS="-O2 -pipe" \
-            --prefix=${MEMCACHED_PREFIX} \
-            --enable-sasl \
-            --enable-sasl-pwdb \
-            --disable-docs \
-            --disable-coverage \
-            --disable-dependency-tracking
-          make -j2
-          make install
-          cd ..
-      - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
         run: cmake -S . -B build
       - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
         run: make -C build -j2 all
@@ -99,8 +106,8 @@ jobs:
       - name: Prepare environment (for cur gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
         run: |
-          echo CC=gcc-9 >> ${GITHUB_ENV}
-          echo CXX=g++-9 >> ${GITHUB_ENV}
+          echo "CC='gcc-9'" >> ${GITHUB_ENV}
+          echo "CXX='g++-9'" >> ${GITHUB_ENV}
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -115,7 +122,29 @@ jobs:
         run: |
           brew install bison flex ${INSTALL_MEMCACHED}
           brew services stop memcached || true
-      - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
+      - name: Build memcached
+        run: |
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
         run: cmake -S . -B build
       - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
         run: make -C build -j2 all
@@ -139,8 +168,8 @@ jobs:
       - name: Prepare environment (for cur gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
         run: |
-          echo CC=gcc-9 >> ${GITHUB_ENV}
-          echo CXX=g++-9 >> ${GITHUB_ENV}
+          echo "CC='gcc-9'" >> ${GITHUB_ENV}
+          echo "CXX='g++-9'" >> ${GITHUB_ENV}
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -155,7 +184,29 @@ jobs:
         run: |
           brew install bison flex ${INSTALL_MEMCACHED}
           brew services stop memcached || true
-      - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
+      - name: Build memcached
+        run: |
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
         run: cmake -S . -B build
       - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
         run: make -C build -j2 all
@@ -173,8 +224,6 @@ jobs:
     name: ci-dbg (macos-10.15, clang, apple)
     runs-on: macos-10.15 #
     continue-on-error: true
-    env:
-      MEMCACHED_BINARY: /usr/local/bin/memcached
     steps:
       - uses: actions/checkout@v2
       - name: Install dependencies (Linux)
@@ -191,7 +240,29 @@ jobs:
         run: |
           brew install bison flex ${INSTALL_MEMCACHED}
           brew services stop memcached || true
-      - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
+      - name: Build memcached
+        run: |
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
         run: cmake -S . -B build
       - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
         run: make -C build -j2 all
@@ -224,67 +295,66 @@ jobs:
       - name: Prepare environment (for new gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
         run: |
-          echo CC=gcc-10 >> ${GITHUB_ENV}
-          echo CXX=g++-10 >> ${GITHUB_ENV}
-          echo INSTALL_CC='gcc-10' >> ${GITHUB_ENV}
-          echo INSTALL_CXX='g++-10' >> ${GITHUB_ENV}
+          echo "CC='gcc-10'" >> ${GITHUB_ENV}
+          echo "CXX='g++-10'" >> ${GITHUB_ENV}
+          echo "INSTALL_CC='gcc-10'" >> ${GITHUB_ENV}}
+          echo "INSTALL_CXX='g++-10'" >> ${GITHUB_ENV}}
       - name: Prepare environment (for cur gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
         run: |
-          echo CC=gcc-9 >> ${GITHUB_ENV}
-          echo CXX=g++-9 >> ${GITHUB_ENV}
+          echo "CC='gcc-9'" >> ${GITHUB_ENV}
+          echo "CXX='g++-9'" >> ${GITHUB_ENV}
       - name: Prepare environment (for old gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old')
         run: |
-          echo CC=gcc-8 >> ${GITHUB_ENV}
-          echo CXX=g++-8 >> ${GITHUB_ENV}
+          echo "CC='gcc-8'" >> ${GITHUB_ENV}
+          echo "CXX='g++-8'" >> ${GITHUB_ENV}
       - name: Prepare environment (for new clang on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='new')
         run: |
-          echo CC=clang-10 >> ${GITHUB_ENV}
-          echo CXX=clang++-10 >> ${GITHUB_ENV}
+          echo "CC='clang-10'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-10'" >> ${GITHUB_ENV}
       - name: Prepare environment (for cur clang on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur')
         run: |
-          echo CC=clang-9 >> ${GITHUB_ENV}
-          echo CXX=clang++-9 >> ${GITHUB_ENV}
+          echo "CC='clang-9'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-9'" >> ${GITHUB_ENV}
       - name: Prepare environment (for old clang on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='clang') && (env.CC_VER=='old')
         run: |
-          echo CC=clang-8 >> ${GITHUB_ENV}
-          echo CXX=clang++-8 >> ${GITHUB_ENV}
+          echo "CC='clang-8'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-8'" >> ${GITHUB_ENV}
       - name: Prepare environment (for new gnu on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
         run: |
-          echo CC=gcc-9 >> ${GITHUB_ENV}
-          echo CXX=g++-9 >> ${GITHUB_ENV}
+          echo "CC='gcc-9'" >> ${GITHUB_ENV}
+          echo "CXX='g++-9'" >> ${GITHUB_ENV}
       - name: Prepare environment (for cur gnu on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
         run: |
-          echo CC=gcc-8 >> ${GITHUB_ENV}
-          echo CXX=g++-8 >> ${GITHUB_ENV}
+          echo "CC='gcc-8'" >> ${GITHUB_ENV}
+          echo "CXX='g++-8'" >> ${GITHUB_ENV}
       - name: Prepare environment (for old gnu on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old')
         run: |
-          echo CC=gcc-7 >> ${GITHUB_ENV}
-          echo CXX=g++-7 >> ${GITHUB_ENV}
+          echo "CC='gcc-7'" >> ${GITHUB_ENV}
+          echo "CXX='g++-7'" >> ${GITHUB_ENV}
       - name: Prepare environment (for new clang on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='new')
         run: |
-          echo CC=clang-9 >> ${GITHUB_ENV}
-          echo CXX=clang++-9 >> ${GITHUB_ENV}
+          echo "CC='clang-9'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-9'" >> ${GITHUB_ENV}
       - name: Prepare environment (for cur clang on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur')
         run: |
-          echo CC=clang-8 >> ${GITHUB_ENV}
-          echo CXX=clang++-8 >> ${GITHUB_ENV}
+          echo "CC='clang-8'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-8'" >> ${GITHUB_ENV}
       - name: Prepare environment (for old clang on ubuntu-18.04)
         if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='old')
         run: |
-          echo CC=clang-7 >> ${GITHUB_ENV}
-          echo CXX=clang++-7 >> ${GITHUB_ENV}
-          echo INSTALL_CC='clang-7' >> ${GITHUB_ENV}
-          echo INSTALL_CXX='clang-7' >> ${GITHUB_ENV}
+          echo "CC='clang-6.0'" >> ${GITHUB_ENV}
+          echo "CXX='clang++-6.0'" >> ${GITHUB_ENV}
+          echo "CXXFLAGS='-stdlib=libc++'" >> ${GITHUB_ENV}}
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -299,7 +369,29 @@ jobs:
         run: |
           brew install bison flex ${INSTALL_MEMCACHED}
           brew services stop memcached || true
-      - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+          echo "MEMCACHED_BINARY='/usr/local/bin/memcached'" >> ${GITHUB_ENV}
+      - name: Build memcached
+        run: |
+          if test -d memcached
+          then
+            cd memcached
+            ./autogen.sh
+            ./configure CFLAGS="-O2 -pipe" \
+              --prefix=${MEMCACHED_PREFIX} \
+              --enable-sasl \
+              --enable-sasl-pwdb \
+              --disable-coverage \
+              --disable-dependency-tracking \
+              --disable-docs \
+              --disable-extstore \
+              --disable-option-checking \
+              ;
+            make -j2
+            make install
+            cd ..
+            echo "MEMCACHED_BINARY='${MEMCACHED_PREFIX}/bin/memcached'" >> ${GITHUB_ENV}
+          fi
+      - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
         run: cmake -S . -B build
       - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
         run: make -C build -j2 all
index bfbab812259a44ec14118fa221d577009368874f..f37c79a5e734d6a63297864b4ea50e3d987ab6c0 100644 (file)
@@ -33,12 +33,7 @@ public:
     pipe = exchange(s.pipe, -1);
     status = exchange(s.status, 0);
     signalled = exchange(s.signalled, {});
-#if __clang__ && __clang_major__ <= 7
-    socket_or_port = s.socket_or_port;
-    s.socket_or_port = 11211;
-#else
-    socket_or_port = exchange(s.socket_or_port, 11211);
-#endif
+    socket_or_port = exchange(s.socket_or_port, {});
     output = exchange(s.output, {});
     return *this;
   };