diff options
| author | ruki <[email protected]> | 2022-05-03 23:53:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-03 23:53:45 +0800 |
| commit | 3c4c9fd8c84abca60ce50ac57133a5323cbafcd3 (patch) | |
| tree | 9d908a8d4959f37465600b76e8bcb559e551bffd | |
| parent | bf0bdbaff7a2b5fb5fc4e0b5ab201fe764ea84d0 (diff) | |
format code
| -rw-r--r-- | tests/projects/asm/fasm/src/main.S | 4 | ||||
| -rw-r--r-- | tests/projects/asm/yasm/xmake.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/core/tools/yasm.lua | 8 |
3 files changed, 5 insertions, 8 deletions
diff --git a/tests/projects/asm/fasm/src/main.S b/tests/projects/asm/fasm/src/main.S index 90f4b88b4..e9989d702 100644 --- a/tests/projects/asm/fasm/src/main.S +++ b/tests/projects/asm/fasm/src/main.S @@ -24,5 +24,5 @@ segment extra write_text: mov ah,9 int 21h - retf - + retf + diff --git a/tests/projects/asm/yasm/xmake.lua b/tests/projects/asm/yasm/xmake.lua index 6c96d4c6a..cd51202d7 100644 --- a/tests/projects/asm/yasm/xmake.lua +++ b/tests/projects/asm/yasm/xmake.lua @@ -1,3 +1,4 @@ +add_rules("mode.debug", "mode.release") target("test") set_kind("binary") add_files("src/*.c") diff --git a/xmake/modules/core/tools/yasm.lua b/xmake/modules/core/tools/yasm.lua index 75b835762..488996e51 100644 --- a/xmake/modules/core/tools/yasm.lua +++ b/xmake/modules/core/tools/yasm.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.language.language") -- init it function init(self) @@ -47,14 +48,9 @@ end -- make the warning flag function nf_warning(self, level) - - -- the maps - local maps = - { + local maps = { none = "-w" } - - -- make it return maps[level] end |
