mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Fix symbol visibility in AppKit and X11 build scripts to preserve exported symbols like _NSApp
This commit is contained in:
1 parent
a9b68485e7
commit
0f1d5b62cd
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ link = shlex.split((framework / 'CMakeFiles/AppKit.dir/link.txt').read_text())
|
||||
for name in ['NSResponder', 'NSApplication', 'NSWindow', 'NSDisplay', 'NSView', 'NSThemeFrame', 'NSTextInput', 'NSBitmapImageRep', 'NSEvent.subproj/NSEvent_mouse']:
|
||||
obj = project / f'build/riot-{Path(name).name}.o'
|
||||
subprocess.run(['clang', *flags['C_DEFINES'], *flags['C_INCLUDES'], *flags['C_FLAGS'],
|
||||
'-O3', '-march=native', '-mtune=native', '-fvisibility=hidden', '-Wno-macro-redefined', '-c',
|
||||
'-O3', '-march=native', '-mtune=native', '-Wno-macro-redefined', '-c',
|
||||
str(project / f'build/darling-src/src/external/cocotron/AppKit/{name}.m'),
|
||||
'-o', str(obj)], check=True)
|
||||
link[link.index(f'CMakeFiles/AppKit.dir/{name}.m.o')] = str(obj)
|
||||
|
||||
@@ -13,7 +13,7 @@ for line in (framework / 'CMakeFiles/X11_backend.dir/flags.make').read_text().sp
|
||||
link = shlex.split((framework / 'CMakeFiles/X11_backend.dir/link.txt').read_text())
|
||||
for name in ('X11Display', 'X11Window'):
|
||||
obj = project / f'build/riot-{name}.o'
|
||||
subprocess.run(['clang', *flags['C_DEFINES'], *flags['C_INCLUDES'], *flags['C_FLAGS'], '-O3', '-march=native', '-mtune=native', '-fvisibility=hidden', '-Wno-macro-redefined', '-c', str(project / f'build/darling-src/src/external/cocotron/AppKit/X11.backend/{name}.m'), '-o', str(obj)], check=True)
|
||||
subprocess.run(['clang', *flags['C_DEFINES'], *flags['C_INCLUDES'], *flags['C_FLAGS'], '-O3', '-march=native', '-mtune=native', '-Wno-macro-redefined', '-c', str(project / f'build/darling-src/src/external/cocotron/AppKit/X11.backend/{name}.m'), '-o', str(obj)], check=True)
|
||||
link[link.index(f'CMakeFiles/X11_backend.dir/X11.backend/{name}.m.o')] = str(obj)
|
||||
link[link.index('-o') + 1] = str(project / 'build/riot-X11')
|
||||
subprocess.run(link, cwd=framework, check=True)
|
||||
|
||||
Reference in new issue
Block a user