Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>SCons doesn't really allow for what you want to do. Each node that has to be built has a command line action associated with it. MD5 checksums of the command line strings are stored and a rebuild is triggered if these checksums change. If you change the warning flags, the command line for building the object files changes, even if the resulting object files are the same.</p> <p>If you're really determined, there's always a way to hack around it though. You cold change the way MD5 sums are calculated inside SCons for example. As a proof of concept, I've made SCons ignore the <code>-Wall</code> flag when considering a rebuild. This was done by changing the method that reports the command line associated with an action by placing the following code at the top of a SConstruct file.</p> <pre><code>import SCons import types SCons.Action.ActionBase.get_contents_orig = SCons.Action.ActionBase.get_contents def get_contents(self, *args, **kw): norebuild = ("-Wall",) cnt = self.get_contents_orig(*args, **kw).split() cnt_norebuild = " ".join(i for i in cnt if i not in norebuild) return cnt_norebuild SCons.Action.ActionBase.get_contents = types.MethodType( get_contents, None, SCons.Action.ActionBase) </code></pre> <p>This worked for me with a very simple SConstruct file. It is an extremely poor hack though, and will probably break between different versions or with more complex builds.</p> <p>So in conclusion, it's possible to do what you're asking for, but highly ill-advised. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload