builder: remove optimization level 0
Currently, turning optimizations off causes compile failures. We rely on the optimizer removing some dead symbols. Avoid providing an option that does not work right now. In the future once everything has been fixed we can re-enable this.
Этот коммит содержится в:
родитель
ca1a282495
коммит
ae5b297d59
1 изменённых файлов: 9 добавлений и 2 удалений
|
@ -76,8 +76,15 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(stri
|
||||||
// exactly.
|
// exactly.
|
||||||
errs = nil
|
errs = nil
|
||||||
switch config.Options.Opt {
|
switch config.Options.Opt {
|
||||||
|
/*
|
||||||
|
Currently, turning optimizations off causes compile failures.
|
||||||
|
We rely on the optimizer removing some dead symbols.
|
||||||
|
Avoid providing an option that does not work right now.
|
||||||
|
In the future once everything has been fixed we can re-enable this.
|
||||||
|
|
||||||
case "none", "0":
|
case "none", "0":
|
||||||
errs = transform.Optimize(mod, config, 0, 0, 0) // -O0
|
errs = transform.Optimize(mod, config, 0, 0, 0) // -O0
|
||||||
|
*/
|
||||||
case "1":
|
case "1":
|
||||||
errs = transform.Optimize(mod, config, 1, 0, 0) // -O1
|
errs = transform.Optimize(mod, config, 1, 0, 0) // -O1
|
||||||
case "2":
|
case "2":
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче