aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-02 23:11:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-21 13:51:37 +0300
commitb1471ebbe9db90c472ff356bea6a7c8aedb45db9 (patch)
treea3494b3c2ca9a3529588c4da6e52d9040722a404 /build/root.build
parent4bce3c574df293415c7b2f45b9c2951262fe3412 (diff)
Add implementation
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
new file mode 100644
index 0000000..106f042
--- /dev/null
+++ b/build/root.build
@@ -0,0 +1,26 @@
+# file : build/root.build
+# copyright : Copyright (c) 2016-2017 Code Synthesis Ltd
+# license : GPLv2 with FOSS License Exception; see accompanying COPYING file
+
+# C++ style comments are used in the C code, so we specify the lowest possible
+# standard.
+#
+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 strtoull() C function, that was introduced in C++11.
+# Specifying C++11 looks like an overkill, and can break something else. Let's
+# not specify the standard at all, as the upstream package does for OSes other
+# than Lunux.
+#
+#cxx.std = 03
+
+using cxx
+
+hxx{*}: extension = hpp
+cxx{*}: extension = cpp