From 48384080bdaa469c2231eb38371bfbc780e42d43 Mon Sep 17 00:00:00 2001 From: homuler Date: Sat, 30 Jan 2021 12:12:44 +0900 Subject: [PATCH] fix: limit path length for Windows --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d91b8d716..94ae841e9 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,10 @@ plugindir := $(sdkdir)/Plugins modeldir := $(sdkdir)/Models scriptdir := $(sdkdir)/Scripts +ifeq ($(OS),Windows_NT) + bazelflags.output := --output_user_root=C:/_bzl +endif + bazelflags.gpu := --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 bazelflags.cpu := --define MEDIAPIPE_DISABLE_GPU=1 ifeq ($(OS),Windows_NT) @@ -39,7 +43,7 @@ gpu: | $(protobuf_dll) cd C && bazel build -c opt $(bazelflags.gpu) $(bazel_desktop_target) $(bazel_common_target) cpu: | $(protobuf_dll) - cd C && bazel build -c opt $(bazelflags.cpu) $(bazel_desktop_target) $(bazel_common_target) + cd C && bazel $(bazelflags.output) build -c opt $(bazelflags.cpu) $(bazel_desktop_target) $(bazel_common_target) android_arm: | $(protobuf_dll) cd C && bazel build -c opt $(bazelflags.android_arm) $(bazel_android_target) $(bazel_common_target)