2 ms·
Seems cool! Anyone knows if the "everything for your project must be contained within a single directory root" constraint can be tricked using symbolic links?
by vmarsy 12y ago
Seems cool!
Anyone knows if the "everything for your project must be contained within a single directory root" constraint can be tricked using symbolic links?
- rachelbythebay 12y agoI've never tried symlinks but I don't see why it wouldn't work. The key is that "foo/bar.h" needs to be readable with cwd == "src". If whatever filesystem you have will make content appear there, it should just work. Having just tried it... sure, it'll work. Starting in my "depot" dir... --- $ mkdir /tmp/hn $ echo 'int main() { return 0; }' > /tmp/hn/hn.cc $ ln -s /tmp/hn src/hn $ bb hn/hn I1106 144900 4720 build/dep.cc:591] Compiling: hn/hn I1106 144902 4720 build/deptracker.cc:184] Linking: hn/hn -rwxr-xr-x 1 u g 7364 Nov 6 14:49 bin/hn/hn $ bin/hn/hn $ echo $? 0