[master] 1a81180e5 build: allow compiler in wflags.py to contain options

Nils Goroll nils.goroll at uplex.de
Fri Jun 11 07:43:07 UTC 2021


commit 1a81180e5cabedd1ed1b06efa7c5778144d5d264
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Jun 11 09:42:18 2021 +0200

    build: allow compiler in wflags.py to contain options

diff --git a/wflags.py b/wflags.py
index 7cfffea57..ce32037c4 100644
--- a/wflags.py
+++ b/wflags.py
@@ -83,7 +83,8 @@ UNDESIRABLE_WFLAGS = [
 
 
 def cc(compiler, opt, obj, src):
-    a = [compiler, "-c"]
+    a = compiler.split()
+    a += ["-c"]
     if opt is not None:
         a += opt.split()
     a += ["-o", obj, src]


More information about the varnish-commit mailing list