From ebd0aa530349e28d5983ede05b47e4296374fe83 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 29 Nov 2018 17:33:34 -0800 Subject: [PATCH] Disable sandbox when building from Homebrew According to @ilovezfs "Hi, I'm one of the Homebrew maintainers. You need to run swift build --disable-sandbox because Homebrew runs all builds in a sandbox, and you cannot exec another sandbox within a sandbox. You should not run brew install --no-sandbox, which is intended for debugging purposes only." --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bdb32501..5dea4e41 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BINARY_FOLDER_PREFIX?=/usr/local BINARY_FOLDER=$(BINARY_FOLDER_PREFIX)/bin/ GENERATOR_FOLDER=Generator -SWIFT_BUILD_FLAGS=-c release -Xswiftc -static-stdlib +SWIFT_BUILD_FLAGS=--disable-sandbox -c release -Xswiftc -static-stdlib .PHONY: clean build install uninstall