]> oss.titaniummirror.com Git - nesc.git/blobdiff - src/nesc-compile
Pristine nesc-1.3.2
[nesc.git] / src / nesc-compile
index b02b5ba325fe64ffaf49a85aab56dc153327436a..cdcfe1234590c5ddb98ce0aed118e46ea4c62280 100755 (executable)
@@ -54,6 +54,10 @@ for ($i = 0; $i <= $#ARGV; $i++) {
            push @gcc_args, "--param";
            push @gcc_args, $param;
        }
+       elsif (/^-include$/) {
+           ($i, $file) = &nextarg($i);
+           push @nesc_args, "-include", $file;
+       }
        elsif (/^-S$/) {
            $asmonly = 1;
        }
@@ -136,6 +140,10 @@ if ($nocompile && !$conly) {
 # Check for gcc 4.0.x, which don't tell us about the __STDC__ #define
 unshift @nesc_args, "-D__STDC__" if isgcc40($gcc);
 
+# Get rid of __BLOCKS__ define, if any (prevent use of Apple C extension that
+# nesC doesn't understand)
+unshift @nesc_args, "-U__BLOCKS__";
+
 unshift @nesc_args, "nesc1";
 
 &vsystem(@nesc_args);