[petsc-dev] Experimental GNU make build system

Satish Balay balay at mcs.anl.gov
Thu May 23 13:17:51 CDT 2013


On Thu, 23 May 2013, Jed Brown wrote:

> Satish Balay <balay at mcs.anl.gov> writes:
> 
> > Since it works for 'make V=1' - perhaps we coud do something like:
> >
> > if cygwin: V=1
> 
> I can change the "quiet" setup logic.  Is there a variable identifying
> cygwin in petscvariables?

Not currently - but there is a configure check isCygwin() [all it does
is check 'uname -s'] which can presumably set the variable.

And top level configure.py does its own check by for '/usr/bin/cygcheck.exe'

Satish

------------
diff --git a/config/PETSc/Configure.py b/config/PETSc/Configure.py
index d731a7c..0addd5d 100644
--- a/config/PETSc/Configure.py
+++ b/config/PETSc/Configure.py
@@ -815,6 +815,11 @@ prepend-path PATH %s
 
     return
 
+  def configureCygwin(self):
+    if self.setCompilers.isCygwin():
+      self.addMakeMacro('PETSC_CYGWIN_BUILD','1')
+    return
+
 #-----------------------------------------------------------------------------------------------------
   def configureDefaultArch(self):
     conffile = os.path.join('conf', 'petscvariables')
@@ -929,6 +934,7 @@ prepend-path PATH %s
     self.executeTest(self.configureSolaris)
     self.executeTest(self.configureLinux)
     self.executeTest(self.configureWin32)
+    self.executeTest(self.configureCygwin)
     self.executeTest(self.configureDefaultArch)
     self.executeTest(self.configureScript)
     self.executeTest(self.configureInstall)



More information about the petsc-dev mailing list