From ea17d3262924f95a4fa721b3de6d7fe499bdcf14 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 5 Apr 2012 22:52:54 +0000 Subject: Added unique function and a workaround for non-matching inputs to rules passing the rule input filter. --- share/autoinclude/general-rules.bld | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share/autoinclude/general-rules.bld') diff --git a/share/autoinclude/general-rules.bld b/share/autoinclude/general-rules.bld index cdc2d40..6c0df30 100644 --- a/share/autoinclude/general-rules.bld +++ b/share/autoinclude/general-rules.bld @@ -60,6 +60,7 @@ rule "exe" input "*.o"; profile "build" { + INPUT = [INPUT].unique().matches("*.o"); execute("${CXX} -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); } } @@ -69,6 +70,7 @@ rule "so" input "*.o"; profile "build" { + INPUT = [INPUT].unique().matches("*.o"); execute("${CXX} -shared -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); } } @@ -78,6 +80,7 @@ rule "lib" input "*.o"; profile "build" { + INPUT = [INPUT].unique().matches("*.o"); execute("${AR} cr ${OUTPUT} ${INPUT}"); } } -- cgit v1.2.3