diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -226,7 +226,8 @@ class ExtensionBuilder(distutils.command.build_ext.build_ext, build_ext_options)
             return target
         if not os.path.exists(source):
             raise IOError("Cannot find source file: %s" % source)
-        command = [compiler, "-c", source, "-o", target]
+        command = compiler.split()
+        command.extend(["-c", source, "-o", target])
         command.extend(flags)
         command.extend(macros)
         command.extend(include)
Support multi-token compiler options such as "ccache gcc" (#<I>)