diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-02 23:11:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-24 09:33:15 +0300 |
commit | 354bb40e75d94466e91fe6960523612c9d17ccfb (patch) | |
tree | bdf8b8b90191b98e4b32b62e6cb0e947ea5d5ae2 /build/root.build | |
parent | 4bce3c574df293415c7b2f45b9c2951262fe3412 (diff) |
Add implementation
Diffstat (limited to 'build/root.build')
-rw-r--r-- | build/root.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build new file mode 100644 index 0000000..b699441 --- /dev/null +++ b/build/root.build @@ -0,0 +1,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. +# +using cxx.guess + +cxx.std = ($cxx.id == 'gcc' || $cxx.id == 'clang' ? gnu++03 : 03) + +using cxx + +hxx{*}: extension = hpp +cxx{*}: extension = cpp |