1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 14:25:16 +03:00

Move build-stamp and generatic files to obj/main/$(TARGET)

This allows target level parallel builds, since now there are no
shared files between targets.

Fixes #3261
This commit is contained in:
Alberto García Hierro 2018-05-25 11:00:12 +01:00
parent 46f0ca8e72
commit bf0f05af5f
6 changed files with 43 additions and 27 deletions

View file

@ -80,7 +80,10 @@ class Compiler
if args
all_args.push(*args)
end
all_args << "-o" << output << input
if output
all_args << "-o" << output
end
all_args << input
stdout, stderr, compile_status = Open3.capture3(join_args(all_args))
raise "Compiler error:\n#{all_args.join(' ')}\n#{stderr}" if not options[:noerror] and not compile_status.success?
return stdout, stderr