From 7417ae8dd1dd44bc6af96cdc9a2c78254ac8dd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Sun, 17 Dec 2023 15:15:18 +0100 Subject: [PATCH] c flags --- pkg/vk/vk.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/vk/vk.go b/pkg/vk/vk.go index a90c24cc..25c9e2a2 100644 --- a/pkg/vk/vk.go +++ b/pkg/vk/vk.go @@ -1,10 +1,15 @@ package vk +// See pkg/pmatch/c.go for docs on CC flags. + // #cgo CFLAGS: -Wall -Wextra -pedantic -std=c99 // #cgo CFLAGS: -O2 -// // #cgo LDFLAGS: -lvulkan // +// #cgo amd64 CFLAGS: -march=native +// +// #cgo arm64 CFLAGS: -mcpu=cortex-a72 -mtune=cortex-a72 +// // #include "vk.h" import "C" import (