Просмотр исходного кода

Merge pull request #2222 from ferd/fix-compiler-change-bootstrap-crashes

Fix bootstrap crashes when compilers get modified
pull/2224/head
Fred Hebert 5 лет назад
committed by GitHub
Родитель
Сommit
2c3d7ab3ea
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 5 добавлений и 0 удалений
  1. +5
    -0
      bootstrap

+ 5
- 0
bootstrap Просмотреть файл

@ -14,6 +14,11 @@ main(_) ->
%% Clear directories for builds since bootstrapping may require %% Clear directories for builds since bootstrapping may require
%% a changed structure from an older one %% a changed structure from an older one
rm_rf("_build/bootstrap"), rm_rf("_build/bootstrap"),
%% When recompiling rebar3 itself, the path swaps and cleaning
%% removes the modules in _build/bootstrap, but the VM still
%% manages to discover those in _build/prod from previous builds and
%% cause weird failures when compilers get modified between releases.
rm_rf("_build/prod"),
%% We fetch a few deps from hex for boostraping, %% We fetch a few deps from hex for boostraping,
%% so we must compile r3_safe_erl_term.xrl which %% so we must compile r3_safe_erl_term.xrl which

Загрузка…
Отмена
Сохранить