Skip to main content

signaloid-cli builds create:source

Create a build from a local source file.

Synopsis​

signaloid-cli builds create:source --file <path> --lang <language> [options]

Options​

OptionRequiredDescription
--file <path>YesSource file path
--lang <C|C++|Fortran>YesSource language. Fortran is recognized but not yet supported.
--args <args>NoDefault runtime arguments
--core-id <coreId>NoCore ID
--trace-variables <json>NoNot supported on r7i cores. JSON array of TraceVariableRequest objects, e.g., [{"Expression":"x[0]","File":"main.c","LineNumber":12}]
--data-sources <json>NoJSON array of DataSource objects, e.g., [{"Location":"data","Object":"DataSource","ResourceID":"drv_...","ResourceType":"Drive"}]
--publicNoMark the build as publicly accessible
--discover-variablesNoAsk the Signaloid Cloud Compute Engine to discover traceable variables. Not supported on r7i cores.
--config-mk <path>NoPath to a config.mk file used to customize the build
--max-duration <sec>NoStop the build when it runs longer than this number of seconds, from 1 to 28800 (8 hours). Leave it out for the 8-hour limit.

Time Limit​

For what --max-duration counts and how a stopped build shows up, see Time Limit.

Examples​

Build from C source:

signaloid-cli builds create:source \
--file main.c \
--lang C

With runtime arguments:

signaloid-cli builds create:source \
--file main.c \
--lang C \
--args "argA --longArgB argB"

Specify core:

signaloid-cli builds create:source \
--file main.c \
--lang C \
--core-id cor_e7eec4dce06f5a03a1b5418e0c5cbd7e # C0Pro-S+

Stop the build after 15 minutes:

signaloid-cli builds create:source \
--file main.c \
--lang C \
--max-duration 900

C++ build:

signaloid-cli builds create:source \
--file program.cpp \
--lang C++

See Also​