Skip to content

Commit a119b98

Browse files
author
Your Name
committed
add nvim ghostty config
1 parent 0b4ef42 commit a119b98

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ endif
2121
all: build test
2222

2323
build: clean
24+
MACOSX_DEPLOYMENT_TARGET=$(shell sw_vers -productVersion 2>/dev/null || echo "15.0") \
25+
CGO_CFLAGS="-mmacosx-version-min=$(shell sw_vers -productVersion 2>/dev/null || echo 15.0)" \
26+
CGO_LDFLAGS="-mmacosx-version-min=$(shell sw_vers -productVersion 2>/dev/null || echo 15.0)" \
2427
$(GO) build -ldflags="-s -w" -o $(BINARY_NAME)$(BINARY_EXT) main.go
2528
@echo "Installing $(BINARY_NAME) to $(INSTALL_DIR)..."
2629
@mkdir -p $(INSTALL_DIR)
@@ -31,6 +34,9 @@ build-linux:
3134
GOOS=linux GOARCH=amd64 $(GO) build -o $(BINARY_NAME)_linux main.go
3235

3336
build-darwin:
37+
MACOSX_DEPLOYMENT_TARGET=$(shell sw_vers -productVersion 2>/dev/null || echo "15.0") \
38+
CGO_CFLAGS="-mmacosx-version-min=$(shell sw_vers -productVersion 2>/dev/null || echo 15.0)" \
39+
CGO_LDFLAGS="-mmacosx-version-min=$(shell sw_vers -productVersion 2>/dev/null || echo 15.0)" \
3440
GOOS=darwin GOARCH=amd64 $(GO) build -o $(BINARY_NAME)_darwin main.go
3541

3642
test:

0 commit comments

Comments
 (0)