Skip to content

Commit ee0c924

Browse files
committed
update: review suggestions
1 parent 88c32e1 commit ee0c924

File tree

1 file changed

+48
-20
lines changed

1 file changed

+48
-20
lines changed

docs/topics/native/native-binary-options.md

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can set binary options for your project in your `build.gradle.kts` file:
2424

2525
```kotlin
2626
kotlin {
27-
iosX64("ios") {
27+
iosArm64 {
2828
binaries {
2929
executable {
3030
binaryOption("smallBinary", "true")
@@ -38,7 +38,7 @@ You can set binary options for your project in your `build.gradle.kts` file:
3838

3939
```kotlin
4040
kotlin {
41-
iosX64("ios") {
41+
iosArm64 {
4242
compilations.configureEach {
4343
compilerOptions.configure {
4444
freeCompilerArgs.add("-Xbinary=smallBinary=true")
@@ -234,40 +234,68 @@ kotlinc-native main.kt -Xbinary=enableSafepointSignposts=true tracking-pauses
234234
<td>Controls stack trace generation. <code>libbacktrace</code> enables better stack traces with file locations and line numbers.</td>
235235
<td>Experimental since 1.6.20</td>
236236
</tr>
237-
<tr>
238-
<td><code>memoryModel</code></td>
237+
<!-- <tr>
238+
<td><code>objcExportReportNameCollisions</code></td>
239239
<td>
240240
<list>
241-
<li><code>experimental</code> (default)</li>
242-
<li><code>relaxed</code></li>
243-
<li><code>strict</code></li>
241+
<li><code>true</code></li>
242+
<li><code>false</code> (default)</li>
244243
</list>
245244
</td>
246-
<td>Controls the memory manager behavior.</td>
247-
<td>The experimental mode is enabled by default since 1.7.20</td>
245+
<td>When <code>enabled</code>, reports warnings in case name collisions occur during Objective-C export.</td>
246+
<td></td>
248247
</tr>
249248
<tr>
250-
<td><code>unitSuspendFunctionObjCExport</code></td>
249+
<td><code>objcExportErrorOnNameCollisions</code></td>
251250
<td>
252251
<list>
253-
<li><code>proper</code> (default)</li>
254-
<li><code>legacy</code></li>
252+
<li><code>true</code></li>
253+
<li><code>false</code> (default)</li>
255254
</list>
256255
</td>
257-
<td>Controls how Unit-returning suspend functions are presented in Swift. When set to <code>proper</code>, such functions are translated to <code>async</code> Swift functions with the <code>Void</code> return type instead of <code>KotlinUnit</code>.</td>
258-
<td>Enabled by default in 1.7.0</td>
256+
<td>When <code>true</code>, issues errors in case name collisions occur during Objective-C export.</td>
257+
<td></td>
258+
</tr>
259+
<tr>
260+
<td><code>debugCompilationDir</code></td>
261+
<td><code>String</code></td>
262+
<td>Specifies the directory path to use for debug information in the compiled binary.</td>
263+
<td></td>
264+
</tr>
265+
<tr>
266+
<td><code>fixedBlockPageSize</code></td>
267+
<td><code>UInt</code></td>
268+
<td>Controls the page size for fixed memory blocks in the memory allocator. Affects memory allocation performance and fragmentation.</td>
269+
<td></td>
259270
</tr>
260271
<tr>
261-
<td><code>objcExportSuspendFunctionLaunchThreadRestriction</code></td>
272+
<td><code>gcMutatorsCooperate</code></td>
262273
<td>
263274
<list>
264-
<li><code>none</code> (default)</li>
265-
<li><code>main</code></li>
275+
<li><code>true</code></li>
276+
<li><code>false</code> (default)</li>
266277
</list>
267278
</td>
268-
<td>Controls the restriction on calling Kotlin suspend functions from Swift/Objective-C from threads other than the main one.</td>
269-
<td>Enabled by default in 2.0.20</td>
279+
<td>Controls cooperation between mutator threads and the garbage collector.</td>
280+
<td></td>
281+
</tr>
282+
<tr>
283+
<td><code>auxGCThreads</code></td>
284+
<td><code>UInt</code></td>
285+
<td>Specifies the number of auxiliary threads to use for garbage collection.</td>
286+
<td></td>
270287
</tr>
288+
<tr>
289+
<td><code>sanitizer</code></td>
290+
<td>
291+
<list>
292+
<li><code>address</code></li>
293+
<li><code>thread</code></li>
294+
</list>
295+
</td>
296+
<td>Enables runtime sanitizers for detecting various issues like memory errors, data races, and undefined behavior.</td>
297+
<td>Experimental</td>
298+
</tr> -->
271299
</table>
272300

273-
For more information on stability levels, see the [documentation](components-stability.md#stability-levels-explained).
301+
For more information on stability levels, see the [documentation](components-stability.md#stability-levels-explained).

0 commit comments

Comments
 (0)