From ae937d8339bc5188266f6026ba921c363ee2ca81 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Thu, 22 Aug 2024 22:20:52 -0400 Subject: [PATCH] Use x86-64-v3 Microarch --- Makefile | 2 +- docker/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9eb195df..d4d7db26 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ get-libs: # TODO: add support for ARM64 via cross-compilation invidious: get-libs - crystal build src/invidious.cr $(FLAGS) --progress --stats --error-trace + crystal build src/invidious.cr $(FLAGS) --progress --stats --error-trace --mcpu=x86-64-v3 run: invidious diff --git a/docker/Dockerfile b/docker/Dockerfile index 3d9323fd..6a43793e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,10 +20,10 @@ COPY ./assets/ ./assets/ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml RUN crystal spec --warnings all \ - --link-flags "-lxml2 -llzma" + --link-flags "-lxml2 -llzma" RUN if [[ "${release}" == 1 ]] ; then \ crystal build ./src/invidious.cr \ - --release \ + --release --mcpu=x86-64-v3 \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ else \