Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.get_env on Mac OS when compiling for speed failing #3534

Closed
KieranP opened this issue May 5, 2024 · 1 comment
Closed

os.get_env on Mac OS when compiling for speed failing #3534

KieranP opened this issue May 5, 2024 · 1 comment

Comments

@KieranP
Copy link

KieranP commented May 5, 2024

Context

	Odin:    dev-2024-04:aab122ede
	OS:      macOS Sonoma 14.4.1 (build: 23E224, kernel: 23.4.0)
	CPU:     Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
	RAM:     32768 MiB
	Backend: LLVM 17.0.6

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

package main

import "core:os"
import "core:fmt"

main :: proc() {
  minimal := os.get_env("MINIMAL") != ""

  if minimal {
    fmt.println("Not Minimal")
  } else {
    fmt.println("Minimal")
  }
}

Failure Logs

odin build .
./test
Not Minimal
MINIMAL=1 ./test
Minimal

odin build . -o:speed
LLVM Error:
invalid PostOrderFunctionAttrs pass parameter 'skip-non-recursive'
@laytan
Copy link
Sponsor Contributor

laytan commented May 6, 2024

This very much looks like the error you get running llvm 18, that pass was renamed in that version.

Although I see your report says 17

@Kelimion Kelimion closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants