mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-05-18 23:39:47 +00:00
Fix macos tool path.
This commit is contained in:
parent
062800b917
commit
3a49985d16
15
.github/resources/witness-generator/Makefile
vendored
15
.github/resources/witness-generator/Makefile
vendored
@ -8,6 +8,18 @@ endif
|
||||
# ---- Common ----
|
||||
CXX := g++
|
||||
CXXFLAGS_COMMON := -std=c++11 -O3 -I. -Wno-address-of-packed-member
|
||||
UNAME_S := $(shell uname -s)
|
||||
MACOS_OBJCOPY := /opt/homebrew/opt/llvm/bin/llvm-objcopy
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
# On macOS CI we expect llvm-objcopy from Homebrew LLVM at this exact path.
|
||||
ifeq ($(wildcard $(MACOS_OBJCOPY)),)
|
||||
$(error Missing $(MACOS_OBJCOPY). Install LLVM with Homebrew or update OBJCOPY for this environment.)
|
||||
endif
|
||||
OBJCOPY := $(MACOS_OBJCOPY)
|
||||
else
|
||||
# On non-macOS targets we assume objcopy is available on PATH.
|
||||
OBJCOPY := objcopy
|
||||
endif
|
||||
SRCS := main.cpp calcwit.cpp fr.cpp $(PROJECT).cpp
|
||||
OBJS := $(SRCS:.cpp=.o)
|
||||
LIB_SRCS := calcwit.cpp fr.cpp $(PROJECT).cpp
|
||||
@ -49,11 +61,10 @@ $(BIN): $(OBJS)
|
||||
|
||||
$(LIB): $(LIB_OBJS)
|
||||
ar rcs $@ $^
|
||||
objcopy --prefix-symbols=$(PROJECT)_ $@
|
||||
$(OBJCOPY) --prefix-symbols=$(PROJECT)_ $@
|
||||
|
||||
%.o: %.cpp $(DEPS_HPP)
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(LIB_OBJS) $(BIN) $(LIB)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user