* x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI, X86_TUNE_ADJUST_UNROLL,
[official-gcc.git] / libcilkrts / mk / cilk-version.mk
blob49f524a68093a4749fa74dcc6bf3e79fea205089
1 #########################################################################
3 # Copyright (C) 2009-2016, Intel Corporation
4 # All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
8 # are met:
9 #
10 # * Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # * Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in
14 # the documentation and/or other materials provided with the
15 # distribution.
16 # * Neither the name of Intel Corporation nor the names of its
17 # contributors may be used to endorse or promote products derived
18 # from this software without specific prior written permission.
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27 # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
30 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 # POSSIBILITY OF SUCH DAMAGE.
33 # *********************************************************************
35 # PLEASE NOTE: This file is a downstream copy of a file mainitained in
36 # a repository at cilkplus.org. Changes made to this file that are not
37 # submitted through the contribution process detailed at
38 # http://www.cilkplus.org/submit-cilk-contribution will be lost the next
39 # time that a new version is released. Changes only submitted to the
40 # GNU compiler collection or posted to the git repository at
41 # https://bitbucket.org/intelcilkruntime/intel-cilk-runtime.git are
42 # not tracked.
44 # We welcome your contributions to this open source project. Thank you
45 # for your assistance in helping us improve Cilk Plus.
46 ###########################################################################
47 # cilk-version.mk
49 # The one place we look up information from the code management system
51 # Note that the build number is *only* valid on the build machines
53 ifeq ($(wildcard $(TOP)/../.hg),)
54 # If this is the open source release, there is no Mercurial repository,
55 # so set some reasonable defaults.
56 CILK_VERSION_MAJOR := 2
57 CILK_VERSION_MINOR := 0
58 CILK_VERSION_BUILD := 1
59 CILK_VERSION_REV := 0
61 CILK_VERSION_HASH := 000000000000
62 CILK_VERSION_BRANCH := oss
63 else
64 CILK_VERSION_MAJOR := 2
65 CILK_VERSION_MINOR := 0
66 CILK_VERSION_BUILD := $(firstword $(subst +, ,$(shell hg id --num)))
67 CILK_VERSION_REV := 0
69 CILK_VERSION_HASH := $(firstword $(subst +, ,$(shell hg id --id)))
70 CILK_VERSION_BRANCH := $(shell hg id --branch)
71 endif