@@ -2,12 +2,25 @@ package scala.build.preprocessing.directives
2
2
3
3
import scala .build .directives .*
4
4
import scala .build .errors .BuildException
5
+ import scala .build .internal .Constants
5
6
import scala .build .options .{BuildOptions , ScalaNativeOptions }
6
7
import scala .build .{Positioned , options }
7
8
import scala .cli .commands .SpecificationLevel
8
9
9
10
@ DirectiveGroupName (" Scala Native options" )
10
- @ DirectiveExamples (" //> using nativeVersion 0.4.0" )
11
+ @ DirectiveExamples (s " //> using nativeGc immix " )
12
+ @ DirectiveExamples (s " //> using nativeMode debug " )
13
+ @ DirectiveExamples (s " //> using nativeLto full " )
14
+ @ DirectiveExamples (s " //> using nativeVersion ${Constants .scalaNativeVersion}" )
15
+ @ DirectiveExamples (s " //> using nativeCompile -flto=thin " )
16
+ @ DirectiveExamples (s " //> using nativeLinking -flto=thin " )
17
+ @ DirectiveExamples (s " //> using nativeClang ./clang " )
18
+ @ DirectiveExamples (s " //> using nativeClangPP ./clang++ " )
19
+ @ DirectiveExamples (s " //> using nativeEmbedResources " )
20
+ @ DirectiveExamples (s " //> using nativeEmbedResources true " )
21
+ @ DirectiveExamples (s " //> using nativeTarget library-dynamic " )
22
+ @ DirectiveExamples (s " //> using nativeMultithreading " )
23
+ @ DirectiveExamples (s " //> using nativeMultithreading false " )
11
24
@ DirectiveUsage (
12
25
" //> using nativeGc _value_ | using native-version _value_" ,
13
26
""" `//> using nativeGc` **immix**_|commix|boehm|none_
@@ -25,10 +38,15 @@ import scala.cli.commands.SpecificationLevel
25
38
|`//> using nativeClang` _value_
26
39
|
27
40
|`//> using nativeClangPP` _value_
41
+ |`//> using nativeClangPp` _value_
28
42
|
29
43
|`//> using nativeEmbedResources` _true|false_
44
+ |`//> using nativeEmbedResources`
30
45
|
31
46
|`//> using nativeTarget` _application|library-dynamic|library-static_
47
+ |
48
+ |`//> using nativeMultithreading` _true|false_
49
+ |`//> using nativeMultithreading`
32
50
""" .stripMargin.trim
33
51
)
34
52
@ DirectiveDescription (" Add Scala Native options" )
0 commit comments