#1030250: correctly pass the dry_run option to the mkpath() function.
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 0ed9a40..87d6e27 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -1041,7 +1041,7 @@
         return move_file (src, dst, dry_run=self.dry_run)
 
     def mkpath (self, name, mode=0777):
-        mkpath (name, mode, self.dry_run)
+        mkpath (name, mode, dry_run=self.dry_run)
 
 
 # class CCompiler
diff --git a/Misc/NEWS b/Misc/NEWS
index e964ced..9006fdf 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -74,6 +74,9 @@
 Library
 -------
 
+- Issue #1030250: Distutils created directories even when run with the
+  --dry-run option.
+
 - Issue #4483: _dbm module now builds on systems with gdbm & gdbm_compat
   libs.