summaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/asm.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index 9eda37a80..df96c2eee 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -1,7 +1,6 @@
from __future__ import annotations
import os
-import textwrap
import typing as T
from .. import mlog
@@ -197,35 +196,6 @@ class NasmCompiler(ASMCompiler):
return []
return self.crt_args[self.get_crt_val(crt_val, buildtype)]
- def _sanity_check_compile_args(self, env: Environment, sourcename: str, binname: str) -> T.List[str]:
- return (self.exelist_no_ccache + [sourcename] + self.get_output_args(binname) +
- self.get_always_args() + self.get_crt_link_args('mt', ''))
-
- def _sanity_check_source_code(self) -> str:
- if self.info.is_linux():
- return textwrap.dedent('''
- section .text
- global main
-
- main:
- mov eax, 1
- mov ebx, 0
- int 0x80
- ''')
- elif self.info.is_cygwin() or self.info.is_windows():
- return textwrap.dedent('''
- extern _ExitProcess@4
-
- section .text
- global main
-
- main:
- push 0
- call _ExitProcess@4
- ''')
- return super()._sanity_check_source_code()
-
-
class YasmCompiler(NasmCompiler):
id = 'yasm'