Skip to content

Commit

Permalink
nasm: Fix get_optimization_args()
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Aug 22, 2023
1 parent 0890cf8 commit 8004219
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mesonbuild/compilers/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
's': ['-Ox'],
}

nasm_optimization_args = {
'plain': [],
'0': ['-O0'],
'g': ['-O0'],
'1': ['-O1'],
'2': ['-Ox'],
'3': ['-Ox'],
's': ['-Ox'],
} # type: T.Dict[str, T.List[str]]


class NasmCompiler(Compiler):
language = 'nasm'
Expand Down

0 comments on commit 8004219

Please sign in to comment.