dan1994 / dane

Training exercise in Huffman coding
0 stars 0 forks source link

Build fails for sources with the exact same subhierarchy (and name) in src and test hierarchies #24

Closed dan1994 closed 5 years ago

dan1994 commented 5 years ago

When 2 files have the same subhierarchy and name under the src and test hierarchies, the scons infrastructure designates their target .o files in the same destination, causing a conflict for scons. This happens due to the mechanism which chooses the target path by taking the source and replacing the first directory with build. This could be solved by adding build/ as a prefix to the existing path (e.g. src/../some_source.cpp -> build/src/../some_source.cpp.