yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05879
[Branch ~yade-dev/yade/trunk] Rev 2478: 1. Clear erro message when running debug-only build without --debug
------------------------------------------------------------
revno: 2478
committer: Václav Šmilauer <eu@xxxxxxxx>
branch nick: yade
timestamp: Tue 2010-10-12 20:02:23 +0200
message:
1. Clear erro message when running debug-only build without --debug
modified:
SConstruct
core/main/main.py.in
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'SConstruct'
--- SConstruct 2010-10-12 11:47:16 +0000
+++ SConstruct 2010-10-12 18:02:23 +0000
@@ -267,7 +267,8 @@
if ret[0]!='/':
context.Result('Relative path "%s" was given by compiler %s, must specify libstdcxx=.. explicitly.'%(ret,context.env['CXX']))
Exit(1)
- context.env['libstdcxx']=os.path.abspath(ret) # removes .. in g++ path
+ ret=os.path.abspath(ret) # removes .. in the path returned by g++
+ context.env['libstdcxx']=ret
context.Result(ret)
return ret
@@ -469,9 +470,10 @@
if env['PGO']=='use': env.Append(CXXFLAGS=['-fprofile-use'],LINKFLAGS=['-fprofile-use'])
if 'clang' in env['CXX']:
- print 'Probably using clang to compile, adding -Wno-unused-variable -Wno-mismatched-tags -Wno-constant-logical-operand -Qunused-arguments'
+ print 'Looks like we use clang, adding some flags to avoid warning flood.'
env.Append(CXXFLAGS=['-Wno-unused-variable','-Wno-mismatched-tags','-Wno-constant-logical-operand','-Qunused-arguments'])
- if 'openmp' in env['features']: print 'WARNING: building with clang and OpenMP, expect errors!'
+ if 'openmp' in env['features']: print 'WARNING: building with clang and OpenMP feature, expect compilation errors!'
+ if env['optimize']: print 'WARNING: clang\'s optimized builds might crash at startup (if so, recompile with opimize=0)!'
### LINKER
@@ -523,7 +525,7 @@
if f.split('.')[-1] in ('hpp','inl','ipp','tpp','h','mcr'):
m=re.match('^.*?'+sep+'((extra|core)|((gui|lib|pkg)'+sep+'.*?))(|'+sep+'.*)$',root)
if not m:
- print "WARNING: file %s skipped while scanning for headers (no module)"
+ print "WARNING: file %s skipped while scanning for headers (no module)"%(root+'/'+f)
continue
subInc=join(yadeInc,m.group(1).replace(sep,'-')) # replace pkg/lattice by pkg-lattice
if not prefix: # local include directory: do symlinks
=== modified file 'core/main/main.py.in'
--- core/main/main.py.in 2010-10-12 13:56:01 +0000
+++ core/main/main.py.in 2010-10-12 18:02:23 +0000
@@ -53,9 +53,11 @@
if opts.debug:
if not hasDebug:
- raise RuntimeError('Debug build not available with this installation (running with --rebuild might help)')
+ raise RuntimeError('Debug build not available (run without --debug, or try --debug --rebuild)')
libDir=debugLibDir
else:
+ if not hasNonDebug:
+ raise RuntimeError('Non-debug build not available (running with --debug, or try --rebuild)')
libDir=nonDebugLibDir
## remove later