mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-14 07:38:11 +03:00
Makefile.in: Override assignment of DOCKER_OPTS.
... so that users can use it to provide extra options for docker without overriding CCACHE/ROOTLESS logic.
This commit is contained in:
parent
fc27d69033
commit
2c19e6fd92
@ -60,14 +60,14 @@ include $(SRC)/make/rules-cargo.mk
|
|||||||
CCACHE_ENV := $(patsubst %,-e %,$(shell env|cut -d= -f1|grep '^CCACHE_'))
|
CCACHE_ENV := $(patsubst %,-e %,$(shell env|cut -d= -f1|grep '^CCACHE_'))
|
||||||
ifeq ($(ENABLE_CCACHE),1)
|
ifeq ($(ENABLE_CCACHE),1)
|
||||||
export CCACHE_DIR := $(if $(CCACHE_DIR),$(CCACHE_DIR),$(HOME)/.ccache)
|
export CCACHE_DIR := $(if $(CCACHE_DIR),$(CCACHE_DIR),$(HOME)/.ccache)
|
||||||
DOCKER_OPTS := -v $(CCACHE_DIR):$(CCACHE_DIR)$(CONTAINER_MOUNT_OPTS) $(CCACHE_ENV) -e CCACHE_DIR=$(CCACHE_DIR) $(DOCKER_OPTS)
|
override DOCKER_OPTS := -v $(CCACHE_DIR):$(CCACHE_DIR)$(CONTAINER_MOUNT_OPTS) $(CCACHE_ENV) -e CCACHE_DIR=$(CCACHE_DIR) $(DOCKER_OPTS)
|
||||||
else
|
else
|
||||||
export CCACHE_DISABLE := 1
|
export CCACHE_DISABLE := 1
|
||||||
DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS)
|
override DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(ROOTLESS_CONTAINER),1)
|
ifneq ($(ROOTLESS_CONTAINER),1)
|
||||||
DOCKER_OPTS := -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) $(DOCKER_OPTS)
|
override DOCKER_OPTS := -e HOME -e USER -e USERID=$(shell id -u) -u $(shell id -u):$(shell id -g) $(DOCKER_OPTS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONTAINER_ENGINE),)
|
ifeq ($(CONTAINER_ENGINE),)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user