Skip to content

Commit a760cb1

Browse files
committed
build-gme5: don't try to create worktrees if the submodule was not checked out
Leads to weird states.
1 parent ca3ec3e commit a760cb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-gem5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ else:
2828
os.makedirs(binaries_dir, exist_ok=True)
2929
os.makedirs(disks_dir, exist_ok=True)
3030
if not os.path.exists(os.path.join(common.gem5_src_dir, '.git')):
31+
if common.gem5_src_dir == common.gem5_default_src_dir:
32+
raise Exception('gem5 submodule not checked out')
3133
subprocess.check_call([
3234
'git',
3335
'-C', common.gem5_default_src_dir,

0 commit comments

Comments
 (0)