Skip to content

Commit

Permalink
Fix compile issue on higher compile version tool
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Dec 18, 2024
1 parent eb6b3c7 commit 3c3f1a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lisa/tools/netperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ def _install_from_src(self) -> None:
self.node.execute("./autogen.sh", cwd=code_path).assert_exit_code()
configure_cmd = "./configure"
arch = self.node.os.get_kernel_information().hardware_platform # type: ignore
gcc_version = self.node.tools[Gcc].get_version()
if arch == "aarch64":
configure_cmd += f" --build={arch}-unknown-linux-gnu"
# fix compile issue when gcc version > 10
if gcc_version > "10.0.0":
configure_cmd += "CC=gcc CFLAGS='-std=gnu89'"

self.node.execute(configure_cmd, cwd=code_path).assert_exit_code()
arguments = ""
# fix compile issue when gcc version >= 10
Expand Down

0 comments on commit 3c3f1a6

Please sign in to comment.