diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-03-12 11:13:17 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-03-17 10:40:39 -0700 |
commit | 6a5fdbf995c46e17b9e1bbd0516772b35e2786ac (patch) | |
tree | bb6645adf7072b9cb6ec840900ec95a1c14e41d1 | |
parent | 9074c7f8a43e6a50ff255a9974adc20887a3001f (diff) | |
download | meson-6a5fdbf995c46e17b9e1bbd0516772b35e2786ac.zip meson-6a5fdbf995c46e17b9e1bbd0516772b35e2786ac.tar.gz meson-6a5fdbf995c46e17b9e1bbd0516772b35e2786ac.tar.bz2 |
docs: Add Environment variables for compiler/linker selection
We really should be documenting these in an easy to find and reference
place.
-rw-r--r-- | docs/markdown/Reference-tables.md | 19 | ||||
-rw-r--r-- | test cases/java/1 basic/meson.build | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index 59e252f..8c55180 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -255,3 +255,22 @@ These are the values that can be passed to `dependency` function's | config-tool | Use a custom dep tool such as `cups-config` | | system | System provided (e.g. OpenGL) | | extraframework | A macOS/iOS framework | + + +## Compiler and Linker selection variables + +| Language | Compiler | Linker | Note | +|:-------------:|----------|-----------|---------------------------------------------| +| C | CC | CC_LD | | +| C++ | CXX | CXX_LD | | +| D | DC | DC_LD | Before 0.54 D_LD* | +| Fortran | FC | FC_LD | Before 0.54 F_LD* | +| Objective-C | OBJC | OBJC_LD | | +| Objective-C++ | OBJCXX | OBJCXX_LD | Before 0.54 OBJCPP_LD* | +| Rust | RUSTC | RUSTC_LD | Before 0.54 RUST_LD* | +| Vala | VALAC | | Use CC_LD. Vala transpiles to C | +| C# | CSC | CSC | The linker is the compiler | + +*The old environment variales are still supported, but are deprecated and will +be removed in a future version of meson. + diff --git a/test cases/java/1 basic/meson.build b/test cases/java/1 basic/meson.build index 201a609..ef1a4b7 100644 --- a/test cases/java/1 basic/meson.build +++ b/test cases/java/1 basic/meson.build @@ -5,3 +5,7 @@ javaprog = jar('myprog', 'com/mesonbuild/Simple.java', install : true, install_dir : get_option('bindir')) test('mytest', javaprog) + +jc = meson.get_compiler('java') +message(jc.get_id()) +message(jc.get_linker_id()) |