Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.config.in « polly - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 993b9d34ac1d8ffdc4f8304129c2a35d8729a312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#===-- Makefile.config - Local configuration for LLVM ------*- Makefile -*--===#
#
#                     The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
#
# This file is included by Makefile.common.  It defines paths and other
# values specific to a particular installation of LLVM.
#
#===------------------------------------------------------------------------===#

# Set the root directory of this polly's object files
POLLY_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)

# Set this variable to the top level directory where LLVM was built
POLLY_OBJ_ROOT := $(subst //,/,@abs_top_builddir@)

# Set the root directory of this project's install prefix
PROJ_INSTALL_ROOT := @prefix@

# Set the C++ flags
ifeq (@GXX@,yes)
POLLY_CXXFLAGS := "-fno-common -Woverloaded-virtual -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings"
endif

POLLY_CXXFLAGS += "-fno-rtti -fno-exceptions"

# Define the FLAGS for the compilation of isl and imath
#
# Those are the only C files we have in the repository. Hence, we can just use
# the CFLAGS to identify them.
#
# We first set the visibility of all isl functions to hidden to ensure we do
# not clash with other isl versions that got linked into a program that uses
# Polly. (This happens e.g when linking Polly with dragonegg)
#
# We also disable all warnings, as these should be fixed upstream. There is
# no value in reporting them here.
POLLY_CFLAGS := -fvisibility=hidden
POLLY_CFLAGS += -w

CUDALIB_FOUND := @cuda_found@

# Set include directories
POLLY_INC :=  @cuda_inc@ \
              -I$(POLLY_OBJ_ROOT)/lib/External/isl \
              -I$(POLLY_SRC_ROOT)/lib/JSON/include \
              -I$(POLLY_SRC_ROOT)/lib/External/isl/include \
              -I$(POLLY_SRC_ROOT)/lib/External/isl/imath \
              -I$(POLLY_SRC_ROOT)/lib/External/isl

POLLY_LD := @cuda_ld@

POLLY_LIB := @cuda_lib@