summaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-06 10:20:23 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-10-06 10:22:41 -0700
commit3f6265535c2c278a5767160bcc3ba1490ef45f93 (patch)
treede1c550b47d3ca617ebdd4a1ab52ba2fc9f08a14 /mesonbuild
parentc520e8981693056419d846f60ffb85061bf3191f (diff)
downloadmeson-3f6265535c2c278a5767160bcc3ba1490ef45f93.tar.gz
Revert "compilers/asm: Implement sanity checking code for NASM on Windows and Linux"
This reverts commit c520e8981693056419d846f60ffb85061bf3191f.
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'