mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
Don't leave a trailing white-space in cpu brand name
This commit is contained in:
@@ -145,8 +145,7 @@ namespace asmjit {
|
||||
//! ### Supported Backends / Architectures
|
||||
//!
|
||||
//! - **X86** and **X86_64** - Both 32-bit and 64-bit backends tested on CI.
|
||||
//! - **AArch64** - AArch64 backend is currently only partially tested (there is no native AArch64 runner to test
|
||||
//! AsmJit Builder/Compiler).
|
||||
//! - **AArch64** - Tested on CI (Native Apple runners and Linux emulated via QEMU).
|
||||
//!
|
||||
//! ### Static Builds and Embedding
|
||||
//!
|
||||
|
||||
@@ -198,7 +198,7 @@ static ASMJIT_FAVOR_SIZE void simplifyCpuBrand(char* s) noexcept {
|
||||
if (!c)
|
||||
break;
|
||||
|
||||
if (!(c == ' ' && (prev == '@' || s[1] == ' ' || s[1] == '@'))) {
|
||||
if (!(c == ' ' && (prev == '@' || s[1] == ' ' || s[1] == '@' || s[1] == '\0'))) {
|
||||
*d++ = c;
|
||||
prev = c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user