Skip to content

Conversation

@MacroModel
Copy link
Collaborator

No description provided.

Copy link
Member

@trcrsired trcrsired left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// std
#include
#include
#include
#include
#include
#include <type_traits>

chrono is NOT allowed since it is not freestanding

@MacroModel
Copy link
Collaborator Author

// std #include #include #include #include #include #include <type_traits>

chrono is NOT allowed since it is not freestanding

ask @SekaiArendelle

@trcrsired
Copy link
Member

btw, you cannot assume you can use threads in newlib. newlib simply does NOT provide threads. The compiler will make weird decisions.

@MacroModel
Copy link
Collaborator Author

btw, you cannot assume you can use threads in newlib. newlib simply does NOT provide threads. The compiler will make weird decisions.

no thread, only provided this_thread::sleep_for sleep_until and yield, the newlib provide a fake function there

@SekaiArendelle
Copy link

// std #include #include #include #include #include #include <type_traits>
chrono is NOT allowed since it is not freestanding

ask @SekaiArendelle

what can i say

@MacroModel
Copy link
Collaborator Author

MacroModel commented Jan 8, 2026

// std #include #include #include #include #include #include <type_traits>
chrono is NOT allowed since it is not freestanding

ask @SekaiArendelle

what can i say

the solution is make them protected by macro __has_include

@MacroModel
Copy link
Collaborator Author

@trcrsired add contidional include

@trcrsired
Copy link
Member

为什么要在那些文件里加

#if __has_include()
#include
#endif

#include
#include
#include

完全就是瞎搞。而且谁规定你光has_include就能include了?禁止在全库所有的位置加include,懂?

@MacroModel
Copy link
Collaborator Author

include

@SekaiArendelle 改了,这个他一开始就这么搞的

@MacroModel
Copy link
Collaborator Author

你让他把这坨清理了

@SekaiArendelle
Copy link

你让他把这坨清理了

你让ai搞

@MacroModel
Copy link
Collaborator Author

你让他把这坨清理了

你让ai搞

ok,等几天

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

Successfully merging this pull request may close these issues.

3 participants