apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 95 forks source link

compiler: Split long ar command lines into separate commands #506

Closed andrzej-kaczmarek closed 1 year ago

andrzej-kaczmarek commented 1 year ago

This is an ugly hack to deal with command line length limitation on Windows. It will split long ar invocation into series of shorter ones so Windows can execute them properly.

Windows supports command line length up to 32k but we'll use 30k just so we don't have to worry about some corner cases.