[Scons-users] Need to reduce the compiler command line
Gouru, SrinivasReddy CCS
Srinivas.Gouru at fs.utc.com
Sat Nov 2 04:17:28 EDT 2013
Hi
I am using scons as my build Tool.
While am Link a variant directory I am getting an error like "Specified path is too long".
In that directory I need Link 308 files to make a Library. I found that while linking all 308 files with full path names, the command line path is exceeding the limits.
To link the Directory am using a command:
ARCOM = "$AR $ARFLAGS -output=$TARGET $SOURCES"
$SOURCES taking all the source file names along with the path.
How to overcome this problem?
I compiled the variant directory by command line by giving the only object files names as sources. But for that we need to PUSH the directory to variant directory.
I have 2 questions.
1) How to replace $SOURCES to give only .obj files names to ARCOM.
2) How scons compile the code. i.e while compiling the variant directory, Does it move to the variant directory and compiles or it compiles from the current directory only.
Why am asking the above question is if we give only .obj names to ARCOM. While compiling the variant directory we need to be in variant directory only.
Please take this with high priority and reply me.
Thanks,
Srinivas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131102/418cbde6/attachment.html
More information about the Scons-users
mailing list