mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpimath] Suppress the -Wmaybe-uninitialized warning in Eigen (#3378)
GCC 11 emits a false positive when compiling Eigen and breaks the build. Fixes #3363.
This commit is contained in:
@@ -187,6 +187,10 @@ def main():
|
||||
os.makedirs(dest_dir)
|
||||
shutil.copyfile(f, dest_file)
|
||||
|
||||
# Apply patches
|
||||
os.chdir(cwd)
|
||||
subprocess.check_output(["git", "apply", "eigen-maybe-uninitialized.patch"])
|
||||
|
||||
# Comment out missing headers
|
||||
for f in files:
|
||||
dest_file = os.path.join(include_root, f)
|
||||
|
||||
Reference in New Issue
Block a user