diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-08-25 16:10:30 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-09-09 15:54:18 +0200 |
commit | c1066ed55d02eb1fcf12fccf259037dced2489a2 (patch) | |
tree | 64d746a918d1dd66ff74e31d685c19c855e9c1bb /vala/valasymbol.vala | |
parent | fca21e40af55ed0cba5009abd0f1f9a27a2bd83f (diff) | |
download | vala-c1066ed55d02eb1fcf12fccf259037dced2489a2.tar.gz |
valac: Output make-style dependency file
Add a --deps= option to the compiler to write out a make-style
dependency file. The name of the target used is the name of the
dependency file itself.
This lets the dependency file serve as a stamp for the C file (which may
or may not be touched depending if it was changed). The dependency
output is always touched.
Diffstat (limited to 'vala/valasymbol.vala')
-rw-r--r-- | vala/valasymbol.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala index 925e0ebd9..726d4c28b 100644 --- a/vala/valasymbol.vala +++ b/vala/valasymbol.vala @@ -85,7 +85,16 @@ public abstract class Vala.Symbol : CodeNode { /** * Specifies whether this symbol has been accessed. */ - public bool used { get; set; } + public bool used { + get { return _used; } + set { + _used = value; + if (_used && source_reference != null) { + source_reference.file.used = true; + } + } + } + bool _used; /** * Specifies the accessibility of this symbol. Public accessibility |