Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
SWDEV-366823 - Change pragma message to warning
Browse files Browse the repository at this point in the history
File reorganization feature was implemented with backward compatibility
The backward compatibility support will be deprecated in future release.
Changed the #pragma message to #warning for a smooth transition

Change-Id: Ief8000d88b8c26176333a38daad53ea972f99a70
(cherry picked from commit 9ec9835)
  • Loading branch information
raramakr committed Dec 13, 2022
1 parent dc8d04d commit 927da5f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/comgr/comgr-backward-compat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,20 @@ function(create_header_template)
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/\n\n#ifndef @include_guard@\n#define @include_guard@ \n\n#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with amd_comgr\")\n@include_statements@ \n\n#endif")
*/
#ifndef @include_guard@
#define @include_guard@
#if defined(__GNUC__)
#warning \"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with amd_comgr\"
#else
#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with amd_comgr\")
#endif
@include_statements@
#endif")
endfunction()

#use header template file and generate wrapper header files
Expand Down

0 comments on commit 927da5f

Please sign in to comment.