File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,19 @@ standard version.
7272
7373Enabling/disabling extensions is done via single ` -sycl-ext ` option. It accepts
7474comma-separated list of extension names prefixed with ` + ` or ` - ` to indicate
75- whether particular extension should be enabled or disabled.
75+ whether particular extension should be enabled or disabled. It is possible to
76+ specify that option several times: value from each next occurrence will be added
77+ to already specified ones, forming single extensions string.
7678
7779Example: ` -sycl-ext=+EXTENSION_NAME1,-EXTENSION_NAME2 ` - this option specifies
7880that ` EXTENSION_NAME1 ` extension should be enabled and ` EXTENSION_NAME2 ` should
79- be disabled.
81+ be disabled. ` -sycl-ext=+EXTENSION_NAME1 -sycl-ext=-EXTENSION_NAME2 ` gives the
82+ same result.
83+
84+ When the same extension is mentioned several times within single (or several)
85+ ` -sycl-ext ` options, the last occurrence overrides all previous ones, i.e.
86+ ` -sycl-ext=+EXTENSION_NAME1,-EXTENSION_NAME1,+EXTENSION_NAME1 ` will leave
87+ ` EXTENSION_NAME1 ` enabled.
8088
8189When particular extension is enabled, the compiler automatically defines a macro
8290with the same name, i.e. if ` -sycl-ext=EXTENSION_NAME1 ` command line option was
You can’t perform that action at this time.
0 commit comments