[Scons-users] SCons always rebuilds on Windows

Gary Oberbrunner garyo at oberbrunner.com
Mon Apr 29 09:25:11 EDT 2013


On Mon, Apr 29, 2013 at 9:23 AM, Dirk Heinrichs <dirk.heinrichs at altum.de>wrote:


> Am 27.04.2013 14:47, schrieb Gary Oberbrunner:

>

>

> Perhaps the compiler isn't putting the class file where SCons expects it

>> to, so SCons doesn't realize it's been built. Could you also try with

>> --tree=prune and see if all the filenames and paths match with what it

>> actually builds?

>>

>

> Using --tree=prune doesn't make any difference.



Could you paste in the output? (It's not supposed to make a difference,
just show the dependency graph.)


>

>

> If your example is small enough, you could post it here.

>>

>

> Sure. This is SConstruct:

>

> build = Environment(JAVAC = 'C:/jdks/1.7/jdk/bin/javac.**

> exe',tools=['javac'])

> CacheDir('C:\Temp\build_cache'**)

> SConscript('SConscript', exports={'env':build})

>

> SConscript:

>

> Import('env')

> env.Java ('classes', 'src')

>

> src/Hello.java:

>

> class Hello

> {

> public static void main ( String[] args )

> {

> System.out.println("Hello World!");

> }

> }

>

> As said, the same example with "JAVAC=/usr/bin/javac" and

> "CacheDir('/tmp/build_cache')" works fine on Linux.

>

> Bye...

>

>

> Dirk

> --

> Dirk Heinrichs <dirk.heinrichs at altum.de>

> Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913

> GPG Public Key C2E467BB | Jabber: dirk.heinrichs at altum.de

> ______________________________**_________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/**mailman/listinfo/scons-users<http://four.pairlist.net/mailman/listinfo/scons-users>

>




--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130429/fc93e6d7/attachment.html>


More information about the Scons-users mailing list