aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
blob: 79a2c0e59dd2ef46bf8fec0aa99546a9bd4db3c5 (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
# file      : build/root.build
# copyright : Copyright (c) 2016-2017 Code Synthesis Ltd
# license   : GPLv2 with FOSS License Exception; see accompanying COPYING file

c.std = 99

using c

h{*}: extension = h
c{*}: extension = c

# The upstream package uses -std=gnu++03 on Linux. However we can't specify
# C++03 as the code refers to the strtoull() C function that was introduced
# in C++11. Specifying C++11 looks like an overkill, and can break something
# else. And Clang doesn't recognize gnu++03, only gnu++98.
#
using cxx.guess

cxx.std = ($cxx.id == 'gcc' || $cxx.id == 'clang' ? gnu++98 : 03)

using cxx

hxx{*}: extension = hpp
cxx{*}: extension = cpp