aboutsummaryrefslogtreecommitdiff
path: root/tools/build/feature/test-libpython-version.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2015-03-01 21:19:44 +0100
committerArnaldo Carvalho de Melo <[email protected]>2015-03-21 14:53:35 -0300
commite6c76d620379fd65fc0310aee1785ff7b1b10236 (patch)
tree223fe9d9a8e528c69b0545b371555b6218de50d5 /tools/build/feature/test-libpython-version.c
parent970e87b33820205b31306dfb734771842874767c (diff)
perf build: Move feature checks code under tools/build
Moving feature checks code under tools/build directory. Changing also $feature_dir to point to new feature directory location and perf Makefiles to include Makefile.feature from new location. Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/build/feature/test-libpython-version.c')
-rw-r--r--tools/build/feature/test-libpython-version.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/feature/test-libpython-version.c b/tools/build/feature/test-libpython-version.c
new file mode 100644
index 000000000000..facea122d812
--- /dev/null
+++ b/tools/build/feature/test-libpython-version.c
@@ -0,0 +1,10 @@
+#include <Python.h>
+
+#if PY_VERSION_HEX >= 0x03000000
+ #error
+#endif
+
+int main(void)
+{
+ return 0;
+}