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:
@@ -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 $(<)
|
||||
}
|
||||
Reference in New Issue
Block a user