Skip to content

Commit d87bcde

Browse files
committed
add caveat about --optarch with --robot
1 parent 4c81db4 commit d87bcde

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/controlling-compiler-optimization-flags.md

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ See these links for more details w.r.t. OpenBLAS:
6767
* <https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt>
6868
* <https://github.com/xianyi/OpenBLAS/issues/685>
6969

70+
#### Using `--optarch` with `--robot` {: #controlling_compiler_optimization_flags_optarch_caveats_robot }
71+
72+
Keep in mind, when using `--optarch=<flags>` as described below in combination with `--robot`, any dependencies that
73+
haven’t been installed yet will also be built with `--optarch=<flags>`. To specify compiler flags only for
74+
the given easyconfig, use the [`toolchainopts`][vsd_avail_easyconfig_params] easyconfig parameter, for example:
75+
76+
```
77+
toolchainopts = {'optarch': '<flags>'}
78+
```
7079

7180
### Specifying target architecture specific optimization flags to use via `--optarch=<flags>` {: #controlling_compiler_optimization_flags_optarch_flags }
7281

0 commit comments

Comments
 (0)