How to build gem5 out of tree?

2019-08-17 14:23发布

The normal build command:

scons build/ARM/gem5.opt

places the build inside the source tree at:

build/

How to place it in a custom location?

I could not find any relevant scons options.

标签: gem5
1条回答
不美不萌又怎样
2楼-- · 2019-08-17 15:15

I asked on the mailing list and the devs showed me that the following works:

scons /any/path/that/you/want/build/ARM/gem5.opt

gem5's build system just parses the path magically, and extracts the arch and opt from it.

The build/ part is mandatory.

Tested on gem5 8e11ea0e5862f2b088b4b21c32933b623b84efcc

查看更多
登录 后发表回答