You actually don’t need to build the snap, just the lxd binary and sideload it into the snap, see How to create LXD binaries from the source code and side load them in an existing snap installation
You actually don’t need to build the snap, just the lxd binary and sideload it into the snap, see How to create LXD binaries from the source code and side load them in an existing snap installation