On Tue, Mar 15, 2011 at 7:06 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Stuff like this in BlasLapack.py<br>
<br>
def getSharedFlag(self,cflags):<br>
for flag in ['-PIC', '-fPIC', '-KPIC', '-qpic']:<br>
if cflags.find(flag) >=0: return flag<br>
return ''<br>
<br>
def getPrecisionFlag(self,cflags):<br>
for flag in ['-m32', '-m64', '-xarch=v9','-q64']:<br>
if cflags.find(flag) >=0: return flag<br>
return ''<br>
<br>
def getWindowsNonOptFlags(self,cflags):<br>
for flag in ['-MT','-MTd','-MD','-threads']:<br>
if cflags.find(flag) >=0: return flag<br>
return ''<br>
<br>
<br>
are of major concern. So someone adds a new "precision" flag in BuildSystem they have to know to go into BlasLapack.py and edit it?</blockquote><div><br></div><div>Is the intent to deal with crappy flags from users here? If not, we can use the information about</div>
<div>precision and shared libraries from modules rather than from flags. Do not know about Windows.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
Barry<br></font></blockquote></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>