Added bridging header for swift

c structures are now exposed to swift using a bridging header.
it is possible to access bootinfo using the structure (as oppossed to doing bytesfifts blind)
tested on aarch64 apple.
please test on other systems
This commit is contained in:
2026-04-20 16:33:41 +09:00
parent d9110ddce9
commit f3819a5450
3 changed files with 10 additions and 9 deletions
+2
View File
@@ -70,6 +70,8 @@ add_custom_command(
-wmo
-O
-Xcc -fno-stack-protector
-Xcc -I${CMAKE_CURRENT_SOURCE_DIR}/../Common
-import-bridging-header ${CMAKE_CURRENT_SOURCE_DIR}/Source/BridgingHeader.h
-resource-dir ${SWIFT_RESOURCE_DIR}
-c ${SWIFT_SOURCES}
-o ${SWIFT_OBJ}