You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
814 B
20 lines
814 B
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# you have to set MODELS_DIR to infer/models/ before including this file
|
|
|
|
# We want infer to still be able to override PATH so that it can capture compilation
|
|
# commands. Makefile.config will override PATH to be the configure-time one, which defeats
|
|
# infer.
|
|
#
|
|
# When called from our models Makefile PATH will be set by Makefile.config already, then infer will
|
|
# add its wrappers, so we can trust the original PATH here.
|
|
#
|
|
# Save the original PATH, include Makefile.config, and use the original PATH.
|
|
ORIGPATH = $(shell printf "%s" "$$PATH")
|
|
ROOT_DIR = $(MODELS_DIR)/../..
|
|
include $(ROOT_DIR)/Makefile.config
|
|
export PATH := $(ORIGPATH)
|