mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-02 13:33:12 +00:00
Reenable mac and try better windows detection
This commit is contained in:
parent
afd7d2fc62
commit
2a4864cc4e
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -20,10 +20,10 @@ jobs:
|
||||
name: linux
|
||||
lib_ext: so
|
||||
|
||||
# - os: macos-latest
|
||||
# lib_ext: so
|
||||
# name: macos
|
||||
# cpu: arm64
|
||||
- os: macos-latest
|
||||
lib_ext: so
|
||||
name: macos
|
||||
cpu: arm64
|
||||
|
||||
- os: windows-latest
|
||||
cpu: amd64
|
||||
|
||||
18
Makefile
18
Makefile
@ -4,15 +4,17 @@ LIBS_DIR := $(abspath ./libs)
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
# Flags for CGO to find the headers and the shared library
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
||||
else
|
||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||
endif
|
||||
# ifeq ($(UNAME_S),Darwin)
|
||||
# CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
||||
# else
|
||||
# CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||
# endif
|
||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||
|
||||
ifeq ($(OS),windows)
|
||||
ifeq ($(OS),Windows_NT)
|
||||
BIN_NAME := example.exe
|
||||
else
|
||||
BIN_NAME := example
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user