summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorWilliam R. Dieter <william.r.dieter@intel.com>2022-05-27 21:22:01 (GMT)
committerWilliam R. Dieter <william.r.dieter@intel.com>2022-08-01 23:34:49 (GMT)
commit5d5a7123034361b6cacff96d3ed20d2bb78c33cc (patch)
tree64a495f81cc1a3040bf8532737ce2052c324005c /.gitignore
parent8ca7a53cdd0bf82f93447a581c95ca738df2d86c (diff)
downloadCMake-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions