Merge pull request #396 from antonblanchard/make-pipefail

Return correct exit code for piped commands to make
This commit is contained in:
Jeff DiCorpo 2023-02-15 07:20:34 -08:00 committed by GitHub
commit 650716b517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ MGMT_AREA_ROOT ?= $(shell pwd)/mgmt_core_wrapper
# Build tasks such as make ship, make generate_fill, make set_user_id, make final run in the foreground (1) or background (0) # Build tasks such as make ship, make generate_fill, make set_user_id, make final run in the foreground (1) or background (0)
FOREGROUND ?= 1 FOREGROUND ?= 1
# Ensure commands which are piped through tee return the correct exit code
# to make
SHELL=/bin/bash -o pipefail
# PDK setup configs # PDK setup configs
THREADS ?= $(shell nproc) THREADS ?= $(shell nproc)
STD_CELL_LIBRARY ?= sky130_fd_sc_hd STD_CELL_LIBRARY ?= sky130_fd_sc_hd