From e90e6c8bf07d7f33a40f2bc264d88fd799cf4807 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Tue, 30 Jan 2018 15:04:35 -0800 Subject: [PATCH] [infer][build] fix the OCaml dead code detection on macOS Reviewed By: sblackshear Differential Revision: D6849709 fbshipit-source-id: 22140a6 --- infer/src/deadcode/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/src/deadcode/Makefile b/infer/src/deadcode/Makefile index 307c976ea..c23f87194 100644 --- a/infer/src/deadcode/Makefile +++ b/infer/src/deadcode/Makefile @@ -133,7 +133,7 @@ detect_dead_code: # Need to be sequential to avoid getting a garbled file. Need to re-include .depend as it may # have changed. For both of these reasons, run another `make`. # Create a temp file so that the build doesn't break if this step gets interrupted. - tmp_file=$$(mktemp --tmpdir all_infer_in_one_file_XXXXX.ml); \ + tmp_file=$$(mktemp -t all_infer_in_one_file_XXXXX.ml); \ $(MAKE) -j 1 ALL_INFER_IN_ONE_FILE_ML="$$tmp_file" flatten_infer; \ mv "$$tmp_file" $(ALL_INFER_IN_ONE_FILE_ML) # build and get dead code warnings; clean in case of errors so as not to leave rubbish around