| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-12-08 | compilers: clike: Deduplicate compile and link args from actually used arg list | Leonid Zaburunov | |
| Current behaviour is to loop over 'sys_args' list which contains both included and ignored compiler arguments. This could produce unexpected results when argument is both ignored and deduplicated. With the following changes, 'cleaned_sys_args' is used to ensure only included args are deduplicated. Example: CFLAGS (or 'c_args' as Meson option) has '-I${includedir} -L${libdir}' and LDFLAGS ('c_link_args') has '-L${libdir}'. Given CFLAGS value is wrong: -L entry belongs to LDFLAGS and thus should not be included in compiler argument list. Since we have -L in 'sys_args' list this entry will not be included as linker flag too! This is definitely not our goal: wrong entry should just be ignored. Some debug prints from Meson: C_ARGS: ['-I/opt/x64-compile/include', '-L/opt/x64-compile/lib'] LINKER_ARGS: ['-L/opt/x64-compile/lib'] RESULT_CARGS: ['-I/opt/x64-compile/include', '-D_FILE_OFFSET_BITS=64'] RESULT_LDARGS: [] (this is captured during compiler.find_library() call) And this is what we see after applying patch: C_ARGS: ['-I/opt/x64-compile/include', '-L/opt/x64-compile/lib'] LINKER_ARGS: ['-L/opt/x64-compile/lib'] RESULT_CARGS: ['-I/opt/x64-compile/include', '-D_FILE_OFFSET_BITS=64'] RESULT_LDARGS: ['-L/opt/x64-compile/lib'] | |||
| 2025-12-08 | compilers/nvidia_hpc: compilers: move -std options to get_option_std_args | Zephyr Lykos | |
| Fixes: 6c88d9992192379511c4777c526786cbacf06167 Fixes: d3542ff690d0be723cfd3ebfaaac99290517837f Fixes: ff0c758b2a8015f7e7ca6fc627c29ef7bb4771b3 | |||
| 2025-12-08 | compilers/xc32: add updates for v5.00 | Liza Chevalier | |
| 2025-12-08 | compilers/xc32: add _LTO_CACHE_VERSION to match GnuCompiler | Liza Chevalier | |
| 2025-12-08 | style: use singe quotes for strings | Liza Chevalier | |
| 2025-12-01 | rust: Rust-ABI dynamic libraries do not support LTO | Paolo Bonzini | |
| Attempting to use LTO on e.g. a procedural macro crate fails with error: lto cannot be used for proc-macro crate type without -Zdylib-lto Do not return -Clto for such crate types. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||
| 2025-12-01 | compilers: pass target to get_lto_*_args | Paolo Bonzini | |
| Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||
| 2025-11-23 | compilers: forward gen_vs_module_defs_args to linker | Paolo Bonzini | |
| This adds support for DEF files to rust and removes some hasattr duck typing. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | |||
| 2025-11-23 | Add import std support to MSVC. | Jussi Pakkanen | |
| 2025-11-23 | Add cpp_importstd option. | Jussi Pakkanen | |
| The reason it is a string array is that this allows us to add more values than true/false should it be needed. For an example see `b_lto`. | |||
| 2025-11-19 | compilers/rust: make use the fact we have an Environment to cleanup | Dylan Baker | |
| This adds a second stage initialization, which allows us to use options for setting attributes on the compiler. This is called during the detect phase, so the Compiler is never used in a partially initialized state. | |||
| 2025-11-19 | compilers: Remove Environment parameter from RustCompiler.get_nightly | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from RustCompiler.lib_file_to_l_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from RustCompiler.get_rustdoc | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from RustCompiler.get_rust_tool | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from CLikeCompiler.get_compiler_dirs | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from CLikeCompiler.gen_dynamic_link_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from ↵ | Dylan Baker | |
| CLikeCompiler._get_basic_compiler_args | |||
| 2025-11-19 | compilers: Remove Environment parameter from CLikeCompiler.output_is_64bit | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from CLikeCompiler.has_arguments | Dylan Baker | |
| 2025-11-19 | compilers: Make CudaCompiler.get_ccbin_args private | Dylan Baker | |
| It's not used outside of the compiler. | |||
| 2025-11-19 | compilers: Remove Environment parameter from CudaCompiler.get_ccbin_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove CoreDAta parameter from Compiler.cached_compile | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_define | Dylan Baker | |
| 2025-11-19 | Compilers: make CLikeCompiler.cross_compute_int private | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.compute_int | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_members | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_type | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from ↵ | Dylan Baker | |
| Compiler.symbols_have_underscore_prefix | |||
| 2025-11-19 | compilers: Remove dead "update_options" method | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_option_compile_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_option_std_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_option_link_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.check_header | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_header | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_header_symbol | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.run | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.cached_run | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.sizeof | Dylan Baker | |
| This also fixes the `_cross_sizeof` helper | |||
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.alignment | Dylan Baker | |
| This also fixes the helper `_cross_alignment` method. | |||
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_function | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.sanitizer_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.find_library | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_library_naming | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.get_program_dirs | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.has_multi_arguments | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.build_rpath_args | Dylan Baker | |
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.thread_flags | Dylan Baker | |
| Same logic as the openmp flags | |||
| 2025-11-19 | compilers: Remove Environment parameter from Compiler.openmp_flags | Dylan Baker | |
| I've done the compile and link flags in one commit since they're so closely related | |||
| 2025-11-19 | compilers: Remove Environment parameter from ↵ | Dylan Baker | |
| Compiler.get_language_stdlib_only_link_flags | |||
