diff options
| author | William R. Dieter <william.r.dieter@intel.com> | 2022-05-27 21:22:01 (GMT) |
|---|---|---|
| committer | William R. Dieter <william.r.dieter@intel.com> | 2022-08-01 23:34:49 (GMT) |
| commit | 5d5a7123034361b6cacff96d3ed20d2bb78c33cc (patch) | |
| tree | 64a495f81cc1a3040bf8532737ce2052c324005c /Help/guide/tutorial/Complete/MathFunctions/mysqrt.h | |
| parent | 8ca7a53cdd0bf82f93447a581c95ca738df2d86c (diff) | |
| download | CMake-5d5a7123034361b6cacff96d3ed20d2bb78c33cc.zip CMake-5d5a7123034361b6cacff96d3ed20d2bb78c33cc.tar.gz CMake-5d5a7123034361b6cacff96d3ed20d2bb78c33cc.tar.bz2 | |
IntelLLVM: Pass linker flags to the compiler when used as linker
When linking an executable, DLL, or static library, the compiler sometimes
needs to see the linking options. Typically `<FLAGS>` is not passed
for linking, because some of the options are only used for compilation.
Previously, `<LINK_FLAGS>` was passed after the `/link` flag because
the compiler did not understand some of the linking options.
This change wraps the initial linker options borrowed from Windows-MSVC
individually, so that they are passed directly to the linker.
This change is helpful both for interprocedural optimization, which needs
to pass `-Qipo` to the compiler at link time, and for SYCL which needs
to pass `-fsycl` and possibly other options to the compiler at link time.
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Help/guide/tutorial/Complete/MathFunctions/mysqrt.h')
0 files changed, 0 insertions, 0 deletions
