From dc6e0e23b9a56b24d4468cf6c01a886254ed805f Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 4 Apr 2026 13:45:24 +0200 Subject: [PATCH] cgo: allow for changes to 'short-enums' flag This allows for changes to the 'short-enums' flag when using CGo since TinyGo already does this, and it is needed for the esp32s3 processor. Signed-off-by: deadprogram --- cgo/security.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cgo/security.go b/cgo/security.go index a55a7d688..081081f1b 100644 --- a/cgo/security.go +++ b/cgo/security.go @@ -78,6 +78,7 @@ var validCompilerFlags = []*regexp.Regexp{ re(`-f(no-)?(pic|PIC|pie|PIE)`), re(`-f(no-)?plt`), re(`-f(no-)?rtti`), + re(`-f(no-)?short-enums`), re(`-f(no-)?split-stack`), re(`-f(no-)?stack-(.+)`), re(`-f(no-)?strict-aliasing`),