summaryrefslogtreecommitdiff
path: root/mesonbuild/linkers
Commit message (Collapse)AuthorAgeFilesLines
* Changing xc16's linker from 'xc16-gcc.exe' to 'xc16-gcc'. Windows willgeorgev932021-10-271-2/+2
| | | | | still find the correct linker and now linux will be able to use its xc16-gcc as the linker.
* fix various flake8 whitespace errorsEli Schwartz2021-10-272-6/+6
|
* linkers: detect LLD when built with PACKAGE_VENDORPaolo Bonzini2021-10-181-3/+3
| | | | | | | | | https://github.com/Homebrew/homebrew-core/commit/e7c972b6062af753e564104e58d1fa20c0d1ad7a added PACKAGE_VENDOR to lld, causing the -v output to start with "Homebrew LLD" rather than just "LLD". Meson no longer detects it and fails the test_ld_environment_variable_lld unit test. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* Fix typos discovered by codespellChristian Clauss2021-10-101-1/+1
|
* ar linker: generate thin archives for uninstalled static librariesEli Schwartz2021-10-101-8/+19
| | | | | | | | | | | | | | Since they will never be used outside of the build directory, they do not need to literally contain the .o files, and references will be sufficient. This covers a major use of object libraries, which is that the static library would potentially take up a lot of space by including another copy of every .o file. Fixes #9292 Fixes #8057 Fixes #2129
* linkers: reorganize Ar linker into a base classEli Schwartz2021-10-101-29/+24
| | | | | | | | | The `init__()` method basically existed solely to be overridden by every derivative class. Better to use it only in the class that needs it. This fixes several warnings, including missing calls to init because we skipped ArLinker due to not wanting it... also get rid of a pointless popen return code saved as pc, which we never checked.
* fix typo in error message breaking newline escapeEli Schwartz2021-10-031-1/+1
| | | | Broken in commit 3feaea6b29197cd224fbce0ac65fd43d08c3beac.
* Improve linker detection failure error message.Jussi Pakkanen2021-10-021-3/+5
|
* Comments on nagfor options setup.Mat Cross2021-09-101-1/+8
|
* Implemented some missing operation for the NAG Fortran Compiler.Mat Cross2021-09-102-0/+32
|
* pylint: turn on superflous-parensDylan Baker2021-08-311-1/+1
| | | | | | | | We have a lot of these. Some of them are harmless, if unidiomatic, such as `if (condition)`, others are potentially dangerous `assert(...)`, as `assert(condtion)` works as expected, but `assert(condition, message)` will result in an assertion that never triggers, as what you're actually asserting is `bool(tuple[2])`, which will always be true.
* Cuda: Fix linking with shared versioned internal libsDavid Seifert2021-07-181-2/+6
|
* Merge pull request #8996 from bonzini/fix8746Jussi Pakkanen2021-07-181-24/+11
|\ | | | | Do not add SONAME to shared modules
| * linkers: remove is_shared_module argument to get_soname_argsPaolo Bonzini2021-07-141-22/+11
| | | | | | | | The argument is now unused, drop it.
| * do not add SONAME to shared modulesPaolo Bonzini2021-07-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For an ELF targets, shared_module() builds a module with SONAME field (using -Wl,-soname argument). This is wrong: only the shared_library() needs SONAME, while shared_module() does not. Moreover, tools such as debian's dpkg-shlibdeps use presence of SONAME field as an indicator that this is shared library as opposed to shared module (e.g., for the module it is okay to have unresolved symbols which are imported from the executable which loads the module, while a library should have all symbols resolved). This was in fact already the behavior on Darwin; extend it to ELF targets as well. Fixes: #8746 Reported-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* | Update linkers.pyIan Harvey2021-07-171-0/+6
|/ | | | Add /subsystem:xxx to xilink command line, either as specified in the build settings or as "console" by default.
* condense linesEli Schwartz2021-07-051-6/+3
|
* simplify mesonlib imports for the sake of line lengthsEli Schwartz2021-07-051-11/+12
|
* more f-strings too complex to be caught by pyupgradeEli Schwartz2021-07-051-4/+4
|
* C2000: linker uses now binary setting defined within the cross-filemiebka2021-07-011-2/+2
|
* Split compiler detection from EnvironmentDaniel Mensinger2021-06-252-0/+227
| | | | | | This moves all the compiler detection logic into the new compilers.detect module. This dramatically reduces the size and complexity of Environment.
* linkers: move linkers.py into the linkers packageDaniel Mensinger2021-06-252-0/+1544