Don't depend on global constructors for commands

This breaks when using ObjC, as these can run before the ObjC module is
initialized, resulting in non-working message sends as the selectors are
not registered yet.

FossilOrigin-Name: 1ee33c99835abc029ac202afad1f9b3bf26028e55ea1c53c53416c7566ef749d
This commit is contained in:
Jonathan Schleifer 2024-08-03 14:50:31 +00:00
parent 2fc4599331
commit 0bbe1c8bee
5 changed files with 73 additions and 8 deletions

View file

@ -2,7 +2,10 @@ project('Cube', ['c', 'objcpp'],
meson_version: '1.5.0')
add_global_arguments(
['-fobjc-arc', '-fobjc-arc-exceptions'],
[
'-fobjc-arc',
'-fobjc-arc-exceptions'
],
language: 'objcpp')
objfw_dep = dependency('objfw')
@ -39,6 +42,7 @@ executable('client',
'src/console.mm',
'src/editing.mm',
'src/entities.mm',
'src/init.mm',
'src/main.mm',
'src/menus.mm',
'src/monster.mm',