Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[intel-npu] Fix build when using specific Werror (openvinotoolkit#24250)
The commit eb025fa breaks the build when `CXXFLAGS` or `CFLAGS` have a specific `-Werror` flag. For example, when `CXXFLAGS` have `-Werror=format-security`, the build fails with this message: ``` c++: warning: =format-security: linker input file unused because linking not done c++: error: =format-security: linker input file not found: No such file or directory ``` That's because every occurrence of the `-Werror` string is being replaced in the original `CXXFLAGS` and `CFLAGS` variables. So, if they contain `-Werror=<something>`, it will become just `=<something>`, which will be an unrecognized option. The current commit fixes this by appending `-Wno-error` to `CXXFLAGS` and `CFLAGS` to properly disable errors on warnings.
- Loading branch information