diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 01:39:42 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-02 01:40:12 -0500 |
| commit | f7930b3a1279922cf9e6e75e651fe9b5df247bc6 (patch) | |
| tree | 984d92f85d89aaf355a51af13d45a358da6473b7 /src/Tools/asm.cc | |
| parent | c895f469119903b3874d74604e582aed0da989ae (diff) | |
chore: source level tweaks and breaking API changes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/Tools/asm.cc')
| -rw-r--r-- | src/Tools/asm.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Tools/asm.cc b/src/Tools/asm.cc index 37c7d01..c92705b 100644 --- a/src/Tools/asm.cc +++ b/src/Tools/asm.cc @@ -8,7 +8,7 @@ /// @brief Assembler frontend. #include <CompilerKit/Config.h> -#include <CompilerKit/Version.h> +#include <CompilerKit/Config.h> #include <cstring> #include <vector> @@ -34,7 +34,7 @@ Int32 main(Int32 argc, Char const* argv[]) { Int32 asm_type = kInvalidAssembler; for (size_t index_arg = 1; index_arg < argc; ++index_arg) { - if (strstr(argv[index_arg], "-asm:h")) { + if (strcmp(argv[index_arg], "-asm-h") == 0) { std::printf("asm: Frontend Assembler (64x0, power64, arm64, x64).\n"); std::printf("asm: Version: %s, Release: %s.\n", kDistVersion, kDistRelease); std::printf( @@ -45,13 +45,13 @@ Int32 main(Int32 argc, Char const* argv[]) { "Licensed under the Apache 2.0 license.\n"); return 0; - } else if (strstr(argv[index_arg], "-asm:x64")) { + } else if (strcmp(argv[index_arg], "-asm-x64") == 0) { asm_type = kX64Assembler; - } else if (strstr(argv[index_arg], "-asm:aarch64")) { + } else if (strcmp(argv[index_arg], "-asm-aarch64") == 0) { asm_type = kARM64Assembler; - } else if (strstr(argv[index_arg], "-asm:64x0")) { + } else if (strcmp(argv[index_arg], "-asm-64x0") == 0) { asm_type = k64X0Assembler; - } else if (strstr(argv[index_arg], "-asm:power64")) { + } else if (strcmp(argv[index_arg], "-asm-power64") == 0) { asm_type = kPOWER64Assembler; } else { arg_vec_cstr.push_back(argv[index_arg]); |
