scons Alias leading to python exception

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



scons Alias leading to python exception



AttributeError 'Alias' object has no attribute 'RDirs'' trying to evaluate$_concat(LIBDIRPREFIX, LIBPATH, LIBDIRSUFFIX, env, RDirs, TARGET, SOURCE)'


'Alias' object has no attribute 'RDirs'' trying to evaluate



This results from using the Alias() command that has the same alias name as a Program TARGET. We do this in many places, but in some instances, the above python exception is emitted. this only occurs when attempt to build for two variants (debug and release) simultaneously. Running either a single variant, or renaming the alias to not identically match the name of the Program target will work around the problem. However, as I mentioned, we do this in dozens of SConscripts, but only a few emit the exception.


TARGET = myprog
prog - env.Program(target=TARGET, source=SOURCE)
Alias(TARGET, [prog]))





What's "prog - env.Program..." shouldn't that be "prog = env.Program(..."?
– bdbaddog
Aug 10 at 17:40




1 Answer
1



I was able to solve it by explicitly using the File() command:


TARGET = File(myprog)
prog - env.Program(target=TARGET, source=SOURCE)
Alias(TARGET, [prog]))






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard