From 0ae59be11a9b6d76fdea57845b1424a17fa4dabc Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Thu, 27 Aug 2015 07:55:12 -0700 Subject: [PATCH] Use the same libuv output directory on Mac and Linux. --- Makefile | 2 +- script/libuv.py | 1 + script/wren.mk | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 09de5a84..40c2bb68 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Executables are built to bin/. Libraries are built to lib/. -LIBUV := build/libuv/build/Release/libuv.a +LIBUV := build/libuv/out/Release/libuv.a # A normal, optimized release build for the current CPU architecture. release: $(LIBUV) diff --git a/script/libuv.py b/script/libuv.py index faa18ad7..17aa8693 100755 --- a/script/libuv.py +++ b/script/libuv.py @@ -83,6 +83,7 @@ def build_libuv_mac(): "xcodebuild", # Build a 32-bit + 64-bit universal binary: "ARCHS=i386 x86_64", "ONLY_ACTIVE_ARCH=NO", + "BUILD_DIR=out", "-project", LIB_UV_DIR + "/uv.xcodeproj", "-configuration", "Release", "-target", "All" diff --git a/script/wren.mk b/script/wren.mk index 953a9765..af7c2a30 100644 --- a/script/wren.mk +++ b/script/wren.mk @@ -92,11 +92,9 @@ endif # shared library. ifneq (,$(findstring darwin,$(OS))) SHARED_EXT := dylib - LIBUV_BUILD := build else SHARED_LIB_FLAGS := -Wl,-soname,$@.so SHARED_EXT := so - LIBUV_BUILD := out # On Linux we need to explicitly link to these for libuv. LIBUV_LIBS := -lpthread -lrt @@ -110,7 +108,7 @@ VM_OBJECTS := $(addprefix $(BUILD_DIR)/vm/, $(notdir $(VM_SOURCES:.c=.o))) TEST_OBJECTS := $(patsubst test/api/%.c, $(BUILD_DIR)/test/%.o, $(TEST_SOURCES)) LIBUV_DIR := build/libuv -LIBUV := $(LIBUV_DIR)/$(LIBUV_BUILD)/Release/libuv.a +LIBUV := $(LIBUV_DIR)/out/Release/libuv.a # Flags needed to compile source files for the CLI, including the modules and # API tests.