aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/ccrx.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-08-15 23:57:50 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-08-24 23:49:14 -0400
commit27748f9cd16908f7806328cc0ffb6ba34f04588e (patch)
treec9ad701cab8e439d9b76a3cb5cffc6ee3cbf60f7 /mesonbuild/compilers/mixins/ccrx.py
parent9e2d4994c4d8795619a8e0e819936cd48e4ebebf (diff)
downloadmeson-27748f9cd16908f7806328cc0ffb6ba34f04588e.zip
meson-27748f9cd16908f7806328cc0ffb6ba34f04588e.tar.gz
meson-27748f9cd16908f7806328cc0ffb6ba34f04588e.tar.bz2
fix linker regression for compilers that don't accept LDFLAGS directly
e.g. ldc -- the compiler needs to process args before consuming them. Fixes #10693
Diffstat (limited to 'mesonbuild/compilers/mixins/ccrx.py')
-rw-r--r--mesonbuild/compilers/mixins/ccrx.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/ccrx.py b/mesonbuild/compilers/mixins/ccrx.py
index d87769e..f4c5e06 100644
--- a/mesonbuild/compilers/mixins/ccrx.py
+++ b/mesonbuild/compilers/mixins/ccrx.py
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import annotations
"""Representations specific to the Renesas CC-RX compiler family."""
@@ -20,6 +21,7 @@ import typing as T
from ...mesonlib import EnvironmentException
if T.TYPE_CHECKING:
+ from ...envconfig import MachineInfo
from ...environment import Environment
from ...compilers.compilers import Compiler
else:
@@ -105,7 +107,7 @@ class CcrxCompiler(Compiler):
return ccrx_debug_args[is_debug]
@classmethod
- def unix_args_to_native(cls, args: T.List[str]) -> T.List[str]:
+ def _unix_args_to_native(cls, args: T.List[str], info: MachineInfo) -> T.List[str]:
result = []
for i in args:
if i.startswith('-D'):