commit 180cc2b2689db9fb781f8fc6fab0d6cf56811a63
parent f30b1e150d61f6f5df1407f97bc30bfb2227e4d4
Author: Michael Savage <mikejsavage@gmail.com>
Date: Tue, 31 Oct 2017 09:06:34 +0200
Fix rc on !Windows
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/gen_makefile.lua b/scripts/gen_makefile.lua
@@ -201,9 +201,10 @@ function rc( rc_name )
printf( "\t@printf \"\\033[1;33mbuilding $@\\033[0m\\n\"" )
printf( "\t@rc /fo$@ /nologo $<" )
else
+ local cxx = rightmost( "cxx" )
printf( "%s/%s%s:", dir, rc_name, obj_suffix )
printf( "\t@printf \"\\033[1;33mbuilding $@\\033[0m\\n\"" )
- printf( "\t@%s -x c++ /dev/null -o $@", cxx )
+ printf( "\t@%s -c -x c++ /dev/null -o $@", cxx )
end
end