Generate dummy probes.h for MSVC builds.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 21 Mar 2008 02:50:02 +0000 (02:50 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 21 Mar 2008 02:50:02 +0000 (02:50 +0000)
src/tools/msvc/Solution.pm

index 3fc32356ffc3678e20ddf84051ce05a5adda8c3d..0ae5fa08bfa7ea26d042539e4a3ec64e526906c1 100644 (file)
@@ -205,6 +205,12 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
         close(T);
     }
 
+    if (IsNewer('src\include\utils\probes.h','src\backend\utils\pg_trace.d'))
+    {
+               print "Generating probes.h...\n";
+               system('psed -f src\backend\utils\Gen_dummy_probes.sed src\backend\utils\probes.d > src\include\utils\probes.h'); 
+       }
+
     if (IsNewer('src\interfaces\libpq\libpq.rc','src\interfaces\libpq\libpq.rc.in'))
     {
         print "Generating libpq.rc...\n";