Skip to content

Commit

Permalink
makefile: use -Os on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Jan 4, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 381e71b commit 69067ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/Makefile
Original file line number Diff line number Diff line change
@@ -2,13 +2,15 @@

OUTPUT :=

CCFLAGS += -shared -Os

ifeq ($(OS),Windows_NT)
OUTPUT = lib/noattach.dll
CCFLAGS += -shared -Wl,--exclude-libs,ALL
CCFLAGS += -Wl,--exclude-libs,ALL
CC = clang
else
UNAME := $(shell uname)
CCFLAGS += -fPIC -Os -shared
CCFLAGS += -fPIC
ARCH := $(if $(ARCH),$(ARCH),$(shell uname -m))
ifeq ($(UNAME),Darwin)
ifeq ($(ARCH),arm64)

0 comments on commit 69067ed

Please sign in to comment.