-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix compilation of transport/SessionHandle.h #21765
Fix compilation of transport/SessionHandle.h #21765
Conversation
I'm not super happy about this, but being able to compile the code is important and our internal build system rejects this code unless certain strictures are relaxed. The order dependence is extremely subtle prior to this change, but it's there, and this change makes it clearer. |
PR #21765: Size comparison from 93d72d2 to 68c6155 Decreases (1 build for bl602)
Full report (30 builds for bl602, cc13x2_26x2, cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
|
68c6155
to
1a32336
Compare
PR #21765: Size comparison from bf89608 to 1a32336 Increases (2 builds for cc13x2_26x2, telink)
Decreases (3 builds for cc13x2_26x2, telink)
Full report (36 builds for bl602, cc13x2_26x2, cyw30739, k32w, linux, mbed, nrfconnect, p6, telink)
|
Currently SessionHandle, SessionHolder, and Session must be defined in order. Any other order will not compile. Merge these headers in order to satisfy the following objectives: 1) All headers compile in isolation 2) Header order inclusion does not matter This is the simplest way to fix the problem, and seems to be the only way to fix it without changing the class definitions.
1a32336
to
f445562
Compare
PR #21765: Size comparison from 3860268 to f445562 Increases (5 builds for bl602, efr32, telink)
Decreases (1 build for esp32)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Currently SessionHandle, SessionHolder, and Session must be defined in order. Any other order will not compile. Merge these headers in order to satisfy the following objectives: 1) All headers compile in isolation 2) Header order inclusion does not matter This is the simplest way to fix the problem, and seems to be the only way to fix it without changing the class definitions.
Problem
Currently SessionHandle, SessionHolder, and Session must be defined
in order. Any other order will not compile.
Change overview
Merge these headers in order to satisfy the following objectives:
This is the simplest way to fix the problem, and seems to be the only
way to fix it without changing the class definitions.
Testing
Compile.