From 2990df305956741d2d94d40670ca704b05a3826d Mon Sep 17 00:00:00 2001 From: Ayoub Benaissa Date: Thu, 8 Sep 2022 06:59:10 +0100 Subject: [PATCH] fix: don't assume git environment in Makefile some environments do only use the code as is, and won't be able to detect the ROOT using git --- concrete-optimizer-cpp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concrete-optimizer-cpp/Makefile b/concrete-optimizer-cpp/Makefile index a7fa2da0f..6756dcd0c 100644 --- a/concrete-optimizer-cpp/Makefile +++ b/concrete-optimizer-cpp/Makefile @@ -4,7 +4,7 @@ CARGO_PROFILE ?= release PROFILE_SUBDIR ?= release MAKEFILE_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -ROOT = $(shell git rev-parse --show-toplevel) +ROOT = $(realpath $(MAKEFILE_DIR)/..) CXXBRIDGE_DIR = $(ROOT)/target/cxxbridge/concrete-optimizer-cpp/src # In target intermediate files