diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebb6d31..0649916 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,9 @@ jobs: - os: ubuntu-latest arch: amd64 compiler: ldc-master - # - os: ubuntu-24.04-arm - # arch: arm64 - # compiler: ldc-master + - os: ubuntu-24.04-arm + arch: arm64 + compiler: ldc-master - os: macos-latest arch: arm64 compiler: dmd-latest diff --git a/dub.json b/dub.json index 5b481bb..a9320aa 100644 --- a/dub.json +++ b/dub.json @@ -52,7 +52,8 @@ "-P-I$PACKAGE_DIR/include" ], "dflags-ldc": [ - "--verrors-context" + "--verrors-context", + "-mcpu=native" ], "dflags-dmd": [ "-verrors=context" @@ -62,7 +63,7 @@ "curl -sLO https://raw.githubusercontent.com/jedisct1/ipcrypt2/refs/heads/main/src/ipcrypt2.c", "curl -sLO https://raw.githubusercontent.com/jedisct1/ipcrypt2/refs/heads/main/src/include/ipcrypt2.h", "mv ipcrypt2.h $PACKAGE_DIR/include/", - "gcc -std=c99 -O3 -fPIC -I$PACKAGE_DIR/include -c -o $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c", + "gcc -march=native -flax-vector-conversions -std=c99 -O3 -fPIE -I$PACKAGE_DIR/include -c -o $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c", "ar rcs $PACKAGE_DIR/build/libipcrypt2.a $PACKAGE_DIR/build/ipcrypt2.o", "rm $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c" ], @@ -71,7 +72,7 @@ "curl -sLO https://raw.githubusercontent.com/jedisct1/ipcrypt2/refs/heads/main/src/ipcrypt2.c", "curl -sLO https://raw.githubusercontent.com/jedisct1/ipcrypt2/refs/heads/main/src/include/ipcrypt2.h", "mv ipcrypt2.h $PACKAGE_DIR/include/", - "clang -std=c99 -O3 -fPIC -I$PACKAGE_DIR/include -c -o $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c", + "clang -mcpu=native -std=c99 -O3 -fPIE -I$PACKAGE_DIR/include -c -o $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c", "ar rcs $PACKAGE_DIR/build/libipcrypt2.a $PACKAGE_DIR/build/ipcrypt2.o", "rm $PACKAGE_DIR/build/ipcrypt2.o $PACKAGE_DIR/ipcrypt2.c" ],