Skip to content

Commit

Permalink
Loki_transform: Add NO_DERIVED_ARGS option to CMake wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Sep 4, 2023
1 parent e5cbaa5 commit ca67d9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/loki_transform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ endmacro()
# [OMNI_INCLUDE <omni-inc1> [<omni-inc2> ...]]
# [XMOD <xmod-dir1> [<xmod-dir2> ...]]
# [REMOVE_OPENMP] [DATA_OFFLOAD] [GLOBAL_VAR_OFFLOAD]
# [TRIM_VECTOR_SECTIONS]
# [TRIM_VECTOR_SECTIONS] [NO_REMOVE_DERIVED_ARGS]
# )
#
# Call ``loki-transform.py convert ...`` with the provided arguments.
Expand All @@ -199,7 +199,7 @@ endmacro()

function( loki_transform_convert )

set( options CPP DATA_OFFLOAD REMOVE_OPENMP GLOBAL_VAR_OFFLOAD TRIM_VECTOR_SECTIONS )
set( options CPP DATA_OFFLOAD REMOVE_OPENMP GLOBAL_VAR_OFFLOAD TRIM_VECTOR_SECTIONS NO_REMOVE_DERIVED_ARGS )
set( oneValueArgs MODE DIRECTIVE FRONTEND CONFIG PATH OUTPATH )
set( multiValueArgs OUTPUT DEPENDS INCLUDES INCLUDE HEADERS HEADER DEFINITIONS DEFINE OMNI_INCLUDE XMOD )

Expand Down Expand Up @@ -244,6 +244,10 @@ function( loki_transform_convert )
list( APPEND _ARGS --trim-vector-sections )
endif()

if( ${_PAR_NO_REMOVE_DERIVED_ARGS} )
list( APPEND _ARGS --no-remove-derived-args )
endif()

_loki_transform_env_setup()

add_custom_command(
Expand Down

0 comments on commit ca67d9a

Please sign in to comment.