Skip to content

Commit

Permalink
ovs-dev.py: Only build the Linux datapath with GCC.
Browse files Browse the repository at this point in the history
In practice, Linux kernel modules are only built with GCC, so it
doesn't make much sense to spend time compiling them with clang.

Signed-off-by: Ethan Jackson <[email protected]>
Acked-by: Joe Stringer <[email protected]>
  • Loading branch information
ejj committed Jan 25, 2014
1 parent d6056bc commit a3ea182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utilities/ovs-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def conf():

configure = ["../configure", "--prefix=" + ROOT, "--localstatedir=" + ROOT,
"--with-logdir=%s/log" % ROOT, "--with-rundir=%s/run" % ROOT,
"--with-linux=/lib/modules/%s/build" % uname(),
"--enable-silent-rules", "--with-dbdir=" + ROOT, "--silent"]

if options.werror:
Expand All @@ -86,7 +85,7 @@ def conf():
pass # Directory exists.

os.chdir(BUILD_GCC)
_sh(*configure)
_sh(*(configure + ["--with-linux=/lib/modules/%s/build" % uname()]))

try:
_sh("clang --version", check=True)
Expand Down

0 comments on commit a3ea182

Please sign in to comment.