Index: doctor.tcl
===================================================================
--- doctor.tcl	(revision 129415)
+++ doctor.tcl	(working copy)
@@ -240,6 +240,15 @@
 
         output "compilation errors"
 
+        # Skip if using https://trac.macports.org/wiki/UsingTheRightCompiler#testing
+        # TODO: find correct way to still test for cache file
+        set clang_path  [macports::findBinary clang {}]
+        if {[string match "*no_default_gcc*" $clang_path]} {
+            ui_msg "skipping since $clang_path is from https://trac.macports.org/wiki/UsingTheRightCompiler#testing"
+            success_fail 1
+            return
+        }
+
         set filename    "test.c"
         set fd          [open $filename w]
         
