llvm
70c5e75e - [Driver][SYCL] Do not claim RDC flag for option enabling (#22237)

Commit
27 days ago
[Driver][SYCL] Do not claim RDC flag for option enabling (#22237) In the driver, any touch of an option with hasFlag, or hasArg, etc will claim that the option has been used. In the new offloading model, -fno-sycl-rdc is not yet implemented, so any actual use of the option is not representative of true usage. Do not mark use of -fno-gpu-rdc (-fno-sycl-rdc is an alias) when being used to add an option to the `-cc1` step. This allows for the driver to properly recognize that -fno-sycl-rdc is not being used when the new model is enabled. This change allows for any true -fno-sycl-rdc testing to emit a diagnostic when used with the new offload model. We can then error on this diagnostic to show failure with the new model for improved visibility and tracking of functionality. The update to sycl/test-e2e/SYCLBIN/link_object_fast_link.cpp is to prevent test failure due to usage of `-fsycl-rdc`. The use of this option is not doing anything, as `-fsycl-rdc` is the default mode. Builds are performed with `-Werror` causing the unused argument warning to become an error.
Author
Parents
Loading