From 3973bfdf7936f4574aa28a97b7343319aa344bc3 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 17 Jul 2022 23:04:47 +0300 Subject: Print version, compiler id and version, and cpuid on boot --- meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8279212..9896e66 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,11 @@ -project('glitch kernel', 'c', version: '0.1.0', default_options: ['c_std=gnu11', 'warning_level=2']) +project('glitch kernel', 'c', version: '0.0.0', default_options: ['c_std=gnu11', 'warning_level=2']) python3 = import('python').find_installation('python3') +cc = meson.get_compiler('c') + +conf = configuration_data() +conf.set_quoted('VERSION', run_command(['git', 'describe', '--long'], capture: true, check: true).stdout().strip()) +conf.set_quoted('CC', cc.get_id() + ' ' + cc.version()) +configure_file(output: 'conf.h', configuration: conf) subdir('arch/i686') subdir('devices') -- cgit v1.2.1