I use WSL a bunch on my Surface at home, but I've found GCC build times to be very lacking, with a huge perf hit compared to native Linux. You take a 2x hit when accessing /mnt/c/, and even when building within Linux filesystem, the build times are significantly slower (couple minutes vs 10s of seconds). Benchmarks put WSL on-par or better than native Ubuntu, so it's likely just a file i/o issue that can hopefully be fixed.