]> git.puffer.fish Git - matthieu/nova.git/commitdiff
migrate to clang
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Sun, 15 Jan 2023 22:03:18 +0000 (02:03 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Sun, 15 Jan 2023 22:03:18 +0000 (02:03 +0400)
.github/workflows/build.yml
Makefile
shell.nix

index 3e1c1ea0eefbf7b3263a39b6dab035cd8d760eff..a2bb06e651dab4f792500d1379fc546d71d4c561 100644 (file)
@@ -127,6 +127,8 @@ jobs:
           go-version: '1.18.4'
       
       - name: Build all
+        env:
+          CC: clang
         run: |
           make all
       - uses: actions/upload-artifact@v3
index 47e74216d1a3b5066f13bf34b0d99913106a958d..756e26e14798fa687fccb3402bd8f87cb3425a24 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,10 +12,9 @@ all:
        @cp target/release/ratelimit build/bin
        @cp target/release/rest build/bin
        @cp target/release/webhook build/bin
-       gcc -v
 
        # Builds go
-       go build -a -x -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
+       go build -a -ldflags '-s' -o build/bin/nova cmd/nova/nova.go
 
 docker-images:
        docker-compose build
index 31f7ee04339a555c2e7ae87f854ca8a8522bd521..927c1b12a34db90449c77bc2142281e57ffb8694 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -11,6 +11,7 @@ mkShell {
        buildInputs = [
                cargo
                gcc
+               clang
                go
                gnumake
                protobuf