-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OS.has_feature("linux")
returns false on linux
#76990
Comments
In 4.x it's |
Also, this hasnt been the behaviour of 4.x until recently, when did it change? |
Seems like you are right, it is a recent and probably unintentional breaking change from #76540.
|
Seems to be fixed by #76974 |
OS.has_feature("linux")
returns false on linux (regression)OS.has_feature("linux")
returns false on linux
To be clear, Linux and BSD libraries/executables/etc are not automatically compatible. They are just similar platforms so they can be compiled from mostly the same codebase (thus the name LinuxBSD). It is necessary for |
Does this mean we should also add |
I don't think we need to, BSD platforms are second class citizens as we don't provide official export templates for them. Users who compile their own export templates for one or more BSD platform can add the relevant feature tags manually which should Just Work™. If they're not aware that the various |
Okay, although I would add I think it makes sense to refresh the page because it doesn't mention By the way, the list of platforms is using the wrong name, I guess it should be Linux/BSD. |
That's right, I thought that's what it did, but after #76974 it's not the case. Should be extended further to also accept the
It's tricky because technically the export templates it will use by default are for Linux (X11, but hopefully soon Wayland too so indeed the |
I think the solution is to add the following code to #ifndef __linux__
if (p_feature == "bsd") {
return true;
}
#endif |
Godot version
c80a2b4
System information
ArchLinux x11
Issue description
returns false.
This is a problem because:
linux.release.x86_64 = "res://lib.so"
Regression introduced somewhere between bd1bc68..6980b2b
Causes gdext#270
The text was updated successfully, but these errors were encountered: