Getting source code updates and recompiling FB
 

要下载fbc Git存储库中提供的更新,可以使用您首选的图形Git工具或终端进行拉动:

git pull

要查看before 应用它们的传入更改,请执行以下操作:

# Update remote branches
git fetch

# Take a look
gitk --all

# Everything looks ok? Then merge the remote branch into the current branch to apply the update.
git merge origin/master

大多数时候,重建就像运行“再次”一样简单。当然,如果您使用编译选项(如ENABLE_STANDALONE)作为构建,则必须再次指定它们,除非它们在config.mk中仍然设置。

make
# or if needed:
make ENABLE_STANDALONE=1

作为一个特殊的例外,对于DOS构建,有必要在make之前运行make clean,以在重新命名或删除源模块后正确重建FB。原因是在DOS / DJGPP下,makefile使用* .o通配符链接fbc和归档libfb.a等,而不是传递显式的.o文件名,因为它必须遵守命令行长度限制。如果make clean未运行,则可能会使用旧版本的旧版本对象文件。幸运的是,我们不经常重命名或删除源文件。