]> granicus.if.org Git - php/commitdiff
Manually build re2c on macos
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 4 Aug 2020 08:05:23 +0000 (10:05 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 4 Aug 2020 08:26:02 +0000 (10:26 +0200)
Avoid issues with the licensing mafia, see:
https://github.com/Homebrew/homebrew-core/pull/59094

Closes GH-5932.

azure/macos/brew.yml

index 02cb736d0262ea11e03f5c6cc6417fab2863e1a6..fb8b9ace2d19b309fb7864642cbb35d5a91f1e53 100644 (file)
@@ -7,8 +7,7 @@ steps:
   - script: |
       brew install pkg-config \
                    autoconf \
-                   bison \
-                   re2c
+                   bison
     displayName: 'Install Build Tools'
   - script: |
       brew install openssl@1.1 \
@@ -34,3 +33,11 @@ steps:
       brew upgrade libzip
       brew link icu4c gettext --force
     displayName: 'Install Build Dependencies'
+  - script: |
+      wget https://github.com/skvadrik/re2c/releases/download/2.0.1/re2c-2.0.1.tar.xz
+      tar -xf re2c-2.0.1.tar.xz
+      cd re2c-2.0.1
+      ./configure
+      make -j$(sysctl -n hw.ncpu)
+      make install
+    displayName: 'Build re2c'