Skip to content

Commit a224b4f

Browse files
committed
Removed: compiler flag -march=native for maximum target support.
1 parent 667d11e commit a224b4f

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Debug with Meson",
66
"type": "cppdbg",
77
"request": "launch",
8-
"program": "${workspaceFolder}/build/Galaxy_Visualization_Linux_v0.5.2",
8+
"program": "${workspaceFolder}/build/Galaxy_Visualization_Linux_v0.5.3",
99
"args": [],
1010
"stopAtEntry": false,
1111
"cwd": "${workspaceFolder}",

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ Or using build.sh:
137137
| Embedded (`--embed` or `-Dembed_assets=true`) | All assets compressed into binary | ~6 MB |
138138
| Static raylib (`--static` or `-Draylib_static=true`) | raylib linked statically, system libs dynamic | Varies |
139139

140-
Notes:
141-
- Windows cross-builds avoid `-march=native` to maximize compatibility (e.g., Wine).
142140

143141
The embedded binary includes:
144142
- Fonts, shaders, and 3D models

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ for arg in "$@"; do
4747
done
4848

4949
CC=clang
50-
CFLAGS="-std=c99 -O3 -march=native -Wall -Wextra -Werror -Wpedantic"
50+
CFLAGS="-std=c99 -O3 -Wall -Wextra -Werror -Wpedantic"
5151
LDLIBS="-lm"
5252

5353
APP_VERSION=$(sed -nE "s/.*version[[:space:]]*:[[:space:]]*'([^']+)'.*/\1/p" meson.build | head -n 1)

meson.build

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project('galaxy_visualization_raylib', 'c',
2-
version : '0.5.2',
2+
version : '0.5.3',
33
default_options : [
44
'c_std=c99',
55

@@ -34,10 +34,6 @@ embed_assets = get_option('embed_assets')
3434
extra_c_args = ['-DAPP_VERSION="' + meson.project_version() + '"']
3535
platform_c_args = []
3636

37-
if host_machine.system() != 'windows'
38-
platform_c_args += ['-march=native']
39-
endif
40-
4137
extra_c_args += ['-Werror']
4238

4339
if host_machine.system() == 'windows'

0 commit comments

Comments
 (0)