Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making the Core ESP8266 Support pre-compiled libraries #8499

Closed
InqOnThat opened this issue Mar 2, 2022 · 2 comments
Closed

Making the Core ESP8266 Support pre-compiled libraries #8499

InqOnThat opened this issue Mar 2, 2022 · 2 comments

Comments

@InqOnThat
Copy link

I'm new to Github, so I don't know if this is the appropriate place for this request. Apologies.

I'd like to request the addition of a single file to the ESP8266 distribution. By placing this in the same folder as the platform.txt file, it permits the use of any pre-compiled libraries.

On my Windows installation, this was in the folder:
C:\Users\Inq\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Before adding the file, the compiler will error with something like
Library Inq has been declared precompiled:
Using precompiled library in C:\Users\Inq\Documents\Arduino\libraries\Inq\src\esp8266
The platform does not support 'compiler.libraries.ldflags' for precompiled libraries.

After adding the file, the compiler reports a successful build
Library Inq has been declared precompiled:
Using precompiled library in C:\Users\Dennis\Documents\ArduinoLW\libraries\Inq\src\esp8266
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 360304 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27373 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1552 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 5936 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 26080 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 395165 bytes (37%) of program storage space. Maximum is 1044464 bytes.
Global variables use 33568 bytes (40%) of dynamic memory, leaving 48352 bytes for local variables. Maximum is 81920 bytes.

platform.local.txt

@earlephilhower earlephilhower transferred this issue from esp8266/esp8266.github.io Mar 2, 2022
@mcspr
Copy link
Collaborator

mcspr commented Mar 3, 2022

Should already be fixed by #8392 for the (pending) 3.1.0

Arduino/platform.txt

Lines 67 to 68 in ead5f94

# support precompiled libraries in IDE v1.8.6+
compiler.libraries.ldflags=

I don't believe .local.txt should be provided by us
https://arduino.github.io/arduino-cli/0.21/platform-specification/#platformlocaltxt

@mcspr mcspr closed this as completed Mar 3, 2022
@InqOnThat
Copy link
Author

InqOnThat commented Mar 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants