mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Wasm][Runtime] Interpret absolute function pointer in runtime structures
When SWIFT_COMPACT_ABSOLUTE_FUNCTION_POINTER is enabled, relative direct pointers whose pointees are functions will be turned into absolute pointer at compile-time.
This commit is contained in:
@@ -269,6 +269,10 @@ function(_add_target_variant_swift_compile_flags
|
||||
list(APPEND result "-D" "INTERNAL_CHECKS_ENABLED")
|
||||
endif()
|
||||
|
||||
if(SWIFT_STDLIB_COMPACT_ABSOLUTE_FUNCTION_POINTER)
|
||||
list(APPEND result "-D" "SWIFT_COMPACT_ABSOLUTE_FUNCTION_POINTER")
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
|
||||
list(APPEND result "-D" "SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user