diff options
author | JF Bastien <jfbastien@apple.com> | 2018-12-19 17:45:32 +0000 |
---|---|---|
committer | JF Bastien <jfbastien@apple.com> | 2018-12-19 17:45:32 +0000 |
commit | e637637ae46a5b2fa1e9d10c16ae5b0922289f82 (patch) | |
tree | 1bd45f3e03d8bbb85a9dca6b46015769d521b186 /pstl/build/unix.inc | |
parent | 5d409b22781f5854f1bac3fd60c8499af0c865bf (diff) | |
download | bcm5719-llvm-e637637ae46a5b2fa1e9d10c16ae5b0922289f82.tar.gz bcm5719-llvm-e637637ae46a5b2fa1e9d10c16ae5b0922289f82.zip |
Initial PSTL commit
The initial commit of the Parallel STL upstream (under LLVM umbrella) based on
Parallel STL 20181204 open source release, which is available by
https://github.com/intel/parallelstl
Author: Mikhail Dvorskiy <mikhail.dvorskiy@intel.com>
Differential Revision: https://reviews.llvm.org/D55889
llvm-svn: 349653
Diffstat (limited to 'pstl/build/unix.inc')
-rw-r--r-- | pstl/build/unix.inc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pstl/build/unix.inc b/pstl/build/unix.inc new file mode 100644 index 00000000000..595fde3b8ae --- /dev/null +++ b/pstl/build/unix.inc @@ -0,0 +1,51 @@ +#===-- unix.inc ----------------------------------------------------------===## +# +# The LLVM Compiler Infrastructure +# +# This file is dual licensed under the MIT and the University of Illinois Open +# Source Licenses. See LICENSE.TXT for details. +# +#===----------------------------------------------------------------------===## + +PYTHON = python +KEY = - +QKEY = $(KEY)q +FKEY = $(KEY) +FQKEY = $(KEY) +MACHINE_KEY = $(KEY)m +OBJ_SFX = .o +DEL_CMD = rm $(KEY)f +RUN_CMD = ./ +COMMAND_SEPARATOR = ; +compiler ?= icc +COMPILER_NOLOGO_KEY = +OPTIMIZATION_DISABLED_FLAGS = $(KEY)O0 $(KEY)g +OPTIMIZATION_ENABLED_FLAGS += $(KEY)O2 +TBB_LIB_NAME = tbb +CPLUS = $(compiler) +LD = $(CPLUS) + +USE_SHARED_CPPRUNTIME_KEY = +LINK_KEY = $(KEY)l + +LD_OUT_KEY = $(KEY)o +DYN_LDFLAGS += -L. -L$(proj_root)/build + +ifneq ($(PSTL_LIB_NAME), ) + PSTL_LIB_LINK += $(LINK_KEY)$(PSTL_LIB_NAME)$(PSTL_LIB_EXT) +endif + +ifeq ($(backend), tbb) + DYN_LDFLAGS += $(LINK_KEY)$(TBB_LIB_NAME) +endif + + +ifeq ($(arch),intel64) + PSTL_ARCH = $(MACHINE_KEY)64 +else ifeq ($(arch),ia32) + PSTL_ARCH = $(MACHINE_KEY)32 +else ifeq ($(arch),) + $(info arch=native by default) +else + PSTL_ARCH = $(MACHINE_KEY)$(arch) +endif |