1. 12 Nov, 2020 2 commits
    • Cristian Maglie's avatar
      [skip-changelog] Some small refactoring on legacy package (#1064) · df9f204f
      Cristian Maglie authored
      * legacy: output --preprocess result on ExecStdout
      
      * legacy: removed redundant argument filters
      
      * legacy: moving path-relativization code out of PrepareCommand
      
      * legacy: removed i18n on unneded message
      
      * legacy: replacing ParseCommandLine with the equivalent library call
      
      * legacy: removed parameter that happens to be always false
      
      * legacy: removed constants.MSG_PATTERN_MISSING from i18n
      
      * Let ExecRecipe return the command executed
      
      This prepares for building a compilation database later. The returned
      command is not currently used anywhere yet, so this commit should not
      change behaviour.
      
      * Fixed typo
      Co-authored-by: default avatarMatthijs Kooijman <matthijs@stdin.nl>
      df9f204f
    • Cristian Maglie's avatar
      builder: use ar-chives for linking big sketches (was: use the @ syntax to... · bb42ebec
      Cristian Maglie authored
      builder: use ar-chives for linking big sketches (was: use the @ syntax to reduce command line length if needed) (#961)
      
      * Small cosmetic changes
      
      * Create an archive file if the number of object files is too big
      
      This should fix the command line too big issue on Windows.
      
      * fixed comments
      
      * When exploiting ar-chives make a .a file for each soruce subfolder
      
      This is required because gcc-ar checks if an object file is already
      in the archive by looking ONLY at the filename WITHOUT the path, so
      it may happens that, for example, an object file named "subdir/spi.o",
      already inside the archive, may be overwritten by an object file in
      "anotherdir/spi.o" only because they are both named spi.o and even if
      they are compiled on different directories.
      
      * using paths.PathList to keep objectFileList
      bb42ebec
  2. 11 Nov, 2020 1 commit
  3. 09 Nov, 2020 1 commit
  4. 05 Nov, 2020 2 commits
  5. 04 Nov, 2020 1 commit
  6. 03 Nov, 2020 6 commits
  7. 02 Nov, 2020 4 commits
  8. 28 Oct, 2020 1 commit
  9. 27 Oct, 2020 1 commit
  10. 20 Oct, 2020 3 commits
  11. 19 Oct, 2020 1 commit
  12. 16 Oct, 2020 3 commits
  13. 15 Oct, 2020 1 commit
  14. 14 Oct, 2020 3 commits
  15. 12 Oct, 2020 7 commits
    • per1234's avatar
      Fix platform tool dependency determination (#1020) · 10d07906
      per1234 authored
      * Fix platform tool dependency determination
      
      The platform tool dependency check was giving false negatives due to comparing pointers instead of version values.
      
      This caused tools to be removed during platform uninstallation even when another installed platform had a dependency on
      that tool.
      
      * Add integration test for tool removal during platform uninstall
      
      Tool dependency by `arduino-cli core uninstall` is somewhat complex because it must only uninstall the tools that no
      other platforms have a dependency on. If it doesn't, it breaks the other platform and the cause of this breakage would
      likely not be obvious to the user.
      
      So it's important to test to ensure this functionality continues to work correctly.
      10d07906
    • Silvano Cerza's avatar
      Revert "Add --dest-file flag to config init command (#957)" (#1026) · 37ba57e3
      Silvano Cerza authored
      This reverts commit 900654f4.
      37ba57e3
    • Silvano Cerza's avatar
    • per1234's avatar
      [skip changelog] Resolve impossible to satisfy flake8 configuration (#1022) · 1d1da069
      per1234 authored
      Flake8/pycodestyle has a pair of mutually exclusive checks:
      
      - W503: 	line break before binary operator
      - W504: 	line break after binary operator
      
      Having both these checks enabled results in a failed check when there is a line break at a binary operator that can't be
      resolved by moving the operator.
      
      PEP 8 recommends line break before the binary operator, so the logical choice between the two checks is W504.
      1d1da069
    • per1234's avatar
      [skip changelog] Link to Sketch build process docs from Platform specification (#1025) · 178a4b05
      per1234 authored
      The "Build process" section of the Arduino platform specification contains a short summary of the Arduino sketch build
      process. The "Sketch build process" page of the documentation provides much more detailed information, which wouldn't be
      appropriate in the platform specification, but could well be of interest to a platform developer.
      
      Adding a link to the "Sketch build process" documentation from that section of the Platform specification makes all
      relevant information easily accessible to the reader.
      178a4b05
    • per1234's avatar
      [skip changelog] Update the tool definition example (#1024) · 41bffac6
      per1234 authored
      The old tool definition example in the package_index.json specification was quite outdated. It did not demonstrate the
      ARM hosts that have become more important since the specification was written. The macOS host value was antiquated.
      
      This could lead to the reader being left with no clear idea of how to create the tool definitions for those hosts.
      41bffac6
    • per1234's avatar
      [skip changelog] Document available memory build properties (#1023) · 3d05ade1
      per1234 authored
      upload.maximum_data_size and upload.maximum_size are properties used by the build system to fail
      compilation when memory usage exceeds a threshold and to calculate the relative memory usage for display in the console.
      3d05ade1
  16. 09 Oct, 2020 1 commit
  17. 05 Oct, 2020 2 commits
    • per1234's avatar
      [skip changelog] Document all contribution options in contributing guidelines (#974) · 27ec1214
      per1234 authored
      Pull requests are only one of the possible ways to contribute to Arduino CLI, yet they were the only one mentioned in
      the "how to contribute" documentation. This change adds documentation of other options, providing more opportunities to
      assist in this project.
      27ec1214
    • per1234's avatar
      [skip changelog] Consolidate integration test instructions (#972) · 143a4dba
      per1234 authored
      Previously, instructions for running integration tests were present both in CONTRIBUTING.md as well as
      in test/README.md.
      
      Although most of the content was duplicated, there was
      some important unique content on each page and the readers of one document would not necessarily know
      of the existence of relevant information in the other.
      
      Duplicate content is more work to maintain, and likely to end up becoming outdated.
      
      So I have transfered the unique content from test/README.md to CONTRIBUTING.md and replaced it with a
      link to that content.
      143a4dba