mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 03:19:58 +03:00
Fix build bug
This commit is contained in:
parent
3f750f28bb
commit
aeada84a73
2 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ function(enable_settings exe name)
|
|||
OUTPUT ${output}
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E env CFLAGS="${cflags}" TARGET=${name} PATH="$ENV{PATH}" SETTINGS_CXX=${args_SETTINGS_CXX}
|
||||
${RUBY_EXECUTABLE} ${SETTINGS_GENERATOR} ${MAIN_DIR} ${SETTINGS_FILE} ${USE_HOST_GCC} -o "${dir}"
|
||||
${RUBY_EXECUTABLE} ${SETTINGS_GENERATOR} ${MAIN_DIR} ${SETTINGS_FILE} -o "${dir}" ${USE_HOST_GCC}
|
||||
DEPENDS ${SETTINGS_GENERATOR} ${SETTINGS_FILE}
|
||||
)
|
||||
set(${args_OUTPUTS} ${output} PARENT_SCOPE)
|
||||
|
|
6
src/utils/settings.rb
Executable file → Normal file
6
src/utils/settings.rb
Executable file → Normal file
|
@ -1148,8 +1148,8 @@ if __FILE__ == $0
|
|||
opts = GetoptLong.new(
|
||||
[ "--output-dir", "-o", GetoptLong::REQUIRED_ARGUMENT ],
|
||||
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
|
||||
[ "--use_host_gcc", "-g", GetoptLong::REQUIRED_ARGUMENT],
|
||||
[ "--json", "-j", GetoptLong::REQUIRED_ARGUMENT ],
|
||||
[ "--use_host_gcc", "-g", GetoptLong::NO_ARGUMENT ]
|
||||
)
|
||||
|
||||
jsonFile = nil
|
||||
|
@ -1163,10 +1163,10 @@ if __FILE__ == $0
|
|||
when "--help"
|
||||
usage()
|
||||
exit(0)
|
||||
when "--use_host_gcc"
|
||||
use_host_gcc = true
|
||||
when "--json"
|
||||
jsonFile = arg
|
||||
when "--use_host_gcc"
|
||||
use_host_gcc = true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue