From e3b0145e73b266a7fc3c1e5a494dbdd9cc1f0114 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 18 Jul 2018 22:47:58 +0300 Subject: Can upgrade build directory from an old version. --- mesonbuild/compilers/compilers.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 25835a3..cefc741 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1,4 +1,4 @@ -# Copyright 2012-2017 The Meson development team +# Copyright 2012-2018 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,6 +72,18 @@ cflags_mapping = {'c': 'CFLAGS', 'vala': 'VALAFLAGS', 'rust': 'RUSTFLAGS'} +compiler_envvars = {'c': 'CC', + 'cpp': 'CXX', + 'java': 'JAVAC', + 'd': 'DC', + 'objc': 'OBJC', + 'objcpp': 'OBJCXX', + 'fortran': 'FC', + 'rust': 'RUSTC', + 'vala': 'VALAC', + 'cs': 'CSC', + } + # All these are only for C-linkable languages; see `clink_langs` above. def sort_clink(lang): -- cgit v1.1