Skip to content

Commit

Permalink
Fix use of EXECUTION_ENVIRONMENT_OVERRIDES.
Browse files Browse the repository at this point in the history
llvm-svn: 181499
  • Loading branch information
ddunbar committed May 9, 2013
1 parent 73fce90 commit fba5c40
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile.programs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ endif

ifdef RUNUNDER
RUNSAFELY := $(RUNSAFELY) -u $(RUNUNDER)
ifdef EXECUTION_ENVIRONMENT_OVERRIDES
$(error "cannot use both RUNUNDER and EXECUTION_ENVIRONMENT_OVERRIDES")
endif
else
ifdef EXECUTION_ENVIRONMENT_OVERRIDES
RUNSAFELY := $(RUNSAFELY) -u 'env $(EXECUTION_ENVIRONMENT_OVERRIDES)'
endif
endif

RUNSAFELY := $(RUNSAFELY) -t "$(TIMEIT_TARGET)"
Expand All @@ -124,10 +131,6 @@ endif
RUNSAFELY := $(RUNSAFELY) $(RUNTIMELIMIT)
RUNSAFELYLOCAL := $(RUNSAFELYLOCAL) $(RUNTIMELIMIT)

ifdef EXECUTION_ENVIRONMENT_OVERRIDES
RUNSAFELY := $(RUNSAFELY) -u 'env $(EXECUTION_ENVIRONMENT_OVERRIDES)' $(RUNSAFELY)
endif

ifndef STDIN_FILENAME
STDIN_FILENAME := /dev/null
endif
Expand Down

0 comments on commit fba5c40

Please sign in to comment.