summaryrefslogtreecommitdiff
path: root/mesonbuild/cargo/builder.py
AgeCommit message (Collapse)Author
2025-12-08interpreterbase: make ArithmeticNode and MesonOperator both use operator namesPaolo Bonzini
This avoids creating a dictionary every time an arithmetic operator is evaluated. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-12-08make ctype the same as the printed ASTPaolo Bonzini
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-10-17cargo: do not process escapes in strings passed to the builderPaolo Bonzini
With workspace support, backslashes can appear in subdir() invocations generated by the Cargo interpreter. If the arguments form valid escapes, for example subdir('dir\foo'), the interpreter will parse the '\f' as a single form feed character, and produce errors such as os.makedirs(os.path.join(self.environment.build_dir, subdir), exist_ok=True) File "C:\hostedtoolcache\windows\Python\3.7.9\x64\lib\os.py", line 223, in makedirs mkdir(name, mode) OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\a\\1\\s\\b c09188aed5\\subprojects\\foo\\dir\x0coo' Use escape=False just like the cmake interpreter does. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2024-09-11Fix typosspaette
2024-02-26cargo: Builder: method() object can be any BaseNodeXavier Claessens
StringNode for example also have methods.
2024-02-26cargo: Builder: Add support for "!=", "in" and "not in" operatorsXavier Claessens
2024-02-26cargo: Builder: Add support for "+", "+=", "if" and "foreach"Xavier Claessens
2023-10-09cargo: Builder: Add dict supportXavier Claessens
2023-10-09cargo: builder: Remove all duplicated functionsXavier Claessens
Keep only the Builder class, there is no point in duplicating everything.
2023-09-11parser: simplify other node constructorsCharles Brunet
2023-09-11parser: simplify Assignment and PlusAssignment nodesCharles Brunet
2023-09-11parser: add SymbolNode to preserve operatorsCharles Brunet
2023-09-11parser: use IdNode for function name and assignment nameCharles Brunet
2023-09-11parser: preserve number baseCharles Brunet
2023-07-19move various bits of type-checking only code to TYPE_CHECKING blocksEli Schwartz
Mostly detected with flake8-type-checking. Also quote T.cast() first arguments, since those are not affected by future annotations.
2023-06-07cargo: Add a builder module to the cargo packageDylan Baker
This is a helper, currently only used by cargo. It could be moved later if there are other users.