cmake: Invoke 'python' instead of py scripts directly
Python scripts should be executed indirectly by the python interpreter, not directly in a CMake COMMAND. This is for portability reasons. Directly executing a python script depends on non-portable shebang logic and/or "default application" behaviour. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
c1c25dea1a
commit
1b6007067d
|
@ -804,6 +804,7 @@ if(CONFIG_ARM AND CONFIG_USERSPACE)
|
|||
add_custom_command(
|
||||
OUTPUT ${PRIV_STACKS_OUTPUT_SRC}
|
||||
COMMAND
|
||||
${PYTHON_EXECUTABLE}
|
||||
${PROCESS_PRIV_STACKS_GPERF}
|
||||
-i ${PRIV_STACKS_OUTPUT_SRC_PRE}
|
||||
-o ${PRIV_STACKS_OUTPUT_SRC}
|
||||
|
@ -917,6 +918,7 @@ if(CONFIG_USERSPACE)
|
|||
add_custom_command(
|
||||
OUTPUT ${OUTPUT_SRC}
|
||||
COMMAND
|
||||
${PYTHON_EXECUTABLE}
|
||||
${PROCESS_GPERF}
|
||||
-i ${OUTPUT_SRC_PRE}
|
||||
-o ${OUTPUT_SRC}
|
||||
|
|
Loading…
Reference in a new issue