You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To work around this problem, the compiler command line options-pedantic-errors and -Werror are patched out of setup.py. I don't think that's a very good solution, so I wanted to change that. A slightly better workaround would be to add -Wno-unused-command-line-argument, which suppresses the warning but ideally we would just not pass the option in the first place. But I am puzzled why the warning is there. It warns, that the option -fno-strict-overflow was not used. But it is not even passed to clang and also doesn't occur anywhere in kitty's source code.
I also don't really know why this doesn't happen when I compile kitty outside of nix, maybe there is a difference between clang from Xcode and clang from nix.
The text was updated successfully, but these errors were encountered:
This will be because nix's build system is adding flags to compiler
invocations behind the back. Presumably the clang that is invoked on nix
is a wrapper that calls the actual clang with added flags. There's
nothing that can be done about that in kitty, since we have no way
to detect modified clang implementations.
If I am correct nix needs to stop messing with compiler flags. If they
feel a flag should be present they need to work with upstream to get it
added.
Thank you, your tip was very helpful. I agree, this is not a problem that should be fixed in kitty. I found a way to disable that particular compiler flag in the build environment.
When building kitty for nix, the compilation would fail:
To work around this problem, the compiler command line options
-pedantic-errors
and-Werror
are patched out ofsetup.py
. I don't think that's a very good solution, so I wanted to change that. A slightly better workaround would be to add-Wno-unused-command-line-argument
, which suppresses the warning but ideally we would just not pass the option in the first place. But I am puzzled why the warning is there. It warns, that the option-fno-strict-overflow
was not used. But it is not even passed toclang
and also doesn't occur anywhere in kitty's source code.I also don't really know why this doesn't happen when I compile kitty outside of nix, maybe there is a difference between
clang
from Xcode andclang
from nix.The text was updated successfully, but these errors were encountered: