mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-05-05 16:59:32 +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
|
name: linux
|
||||||
lib_ext: so
|
lib_ext: so
|
||||||
|
|
||||||
# - os: macos-latest
|
- os: macos-latest
|
||||||
# lib_ext: so
|
lib_ext: so
|
||||||
# name: macos
|
name: macos
|
||||||
# cpu: arm64
|
cpu: arm64
|
||||||
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cpu: amd64
|
cpu: amd64
|
||||||
|
|||||||
18
Makefile
18
Makefile
@ -4,15 +4,17 @@ LIBS_DIR := $(abspath ./libs)
|
|||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
# Flags for CGO to find the headers and the shared library
|
# Flags for CGO to find the headers and the shared library
|
||||||
ifeq ($(UNAME_S),Darwin)
|
# ifeq ($(UNAME_S),Darwin)
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
# CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/./libs
|
||||||
else
|
# else
|
||||||
CGO_CFLAGS := -I$(LIBS_DIR)
|
# CGO_CFLAGS := -I$(LIBS_DIR)
|
||||||
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
# CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
|
||||||
endif
|
# 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
|
BIN_NAME := example.exe
|
||||||
else
|
else
|
||||||
BIN_NAME := example
|
BIN_NAME := example
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user