aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/29 compiler id
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/29 compiler id')
-rw-r--r--meson/test cases/common/29 compiler id/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/meson/test cases/common/29 compiler id/meson.build b/meson/test cases/common/29 compiler id/meson.build
new file mode 100644
index 000000000..280d4f773
--- /dev/null
+++ b/meson/test cases/common/29 compiler id/meson.build
@@ -0,0 +1,15 @@
+project('compiler_id')
+
+foreach lang : ['c', 'cpp', 'fortran', 'objc', 'objcpp']
+
+ if not add_languages(lang, required: false)
+ continue
+ endif
+
+ comp = meson.get_compiler(lang)
+
+ message(lang + ' compiler name is: ' + comp.get_id())
+
+ message(lang + ' linker name is: ' + comp.get_linker_id())
+
+endforeach \ No newline at end of file