Skip to content

Commit

Permalink
library.json specifies libCompatMode strict (#2111)
Browse files Browse the repository at this point in the history
This PR is based on platformio's documentation. I will test it next week.

This PR instructs platformio to pay attention to both the `frameworks` AND `platforms` specification before trying to compile IRremoteESP8266.

I would've thought that platformio would do this check by default, but apparently not. By default it only checks `frameworks`. Source: https://docs.platformio.org/en/latest/manifests/library-json/fields/platforms.html

The documentation for libCompatMode can be found here: https://docs.platformio.org/en/latest/manifests/library-json/fields/build/libcompatmode.html#manifest-library-json-build-libcompatmode
  • Loading branch information
rob-deutsch authored Jun 26, 2024
1 parent 9785cb9 commit dc0fd31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@
],
"exclude": [".github", "extras", "docs", "assets"],
"frameworks": "arduino",
"libCompatMode": "strict",
"platforms": ["espressif8266", "espressif32"]
}

0 comments on commit dc0fd31

Please sign in to comment.