2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Don't generate empty source file -- SunCC warns in that case.

[SVN r25000]
This commit is contained in:
Vladimir Prus
2004-09-10 11:46:22 +00:00
parent c162145da2
commit a2eb2e08cf

View File

@@ -7,12 +7,20 @@ import type ;
import generators ;
import feature ;
import property ;
import print ;
type.register LEX : l ;
generators.register-standard lex.lex : LEX : C ;
rule lex ( targets * : sources * : properties * )
{
print.output $(<) ;
# Need to supress SunCC's warning about empty source
# file.
print.text "void foo() {}" ;
}
actions lex
{
touch $(<)
}