OSDN Git Service

mac workflow: for universal builds, include what configure would normally set for...
authorEric Branlund <ebranlund@fastmail.com>
Tue, 8 Feb 2022 20:05:50 +0000 (12:05 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 8 Feb 2022 20:07:36 +0000 (12:07 -0800)
.github/workflows/test-mac-build.yaml

index 0b72a8a..3d0d030 100644 (file)
@@ -52,6 +52,9 @@ jobs:
           DEPENDENCY_TRACKING=""
           if test -n `echo "${{ env.UNIVERSAL_ARCHS }}" | tr -d ' \t\r\n'` ; then
             DEPENDENCY_TRACKING=--disable-dependency-tracking
+            # Include what configure normally infers for the compiler flags.
+            CFLAGS="$CFLAGS -g -O2"
+            OBJCFLAGS="$OBJCFLAGS -g -O2"
             for arch in ${{ env.UNIVERSAL_ARCHS }} ; do
               option="-arch $arch"
               CFLAGS="$CFLAGS $option"
@@ -116,6 +119,9 @@ jobs:
           DEPENDENCY_TRACKING=""
           if test -n `echo "${{ env.UNIVERSAL_ARCHS }}" | tr -d ' \t\r\n'` ; then
             DEPENDENCY_TRACKING=--disable-dependency-tracking
+            # Include what configure normally infers for the compiler flags.
+            CFLAGS="$CFLAGS -g -O2"
+            OBJCFLAGS="$OBJCFLAGS -g -O2"
             for arch in ${{ env.UNIVERSAL_ARCHS }} ; do
               option="-arch $arch"
               CFLAGS="$CFLAGS $option"