TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

Fix compilation on MacOS #498

Closed BigBadE closed 6 months ago

BigBadE commented 6 months ago

Description

Simply fixes the conditional compilation code inside values/mod.rs to correctly use the &str type instead of String

Related Issue

497

How This Has Been Tested

Code was built on a MacOS x86_64 and MacOS Aarch64 machine (13.0 and 13.4) using github actions

On a side note, it may be wise to setup actions to automatically build the project to prevent issues like this.

There hasn't been any testing of the specific section function, but any issues after this change will have existed beforehand, all this change does it fix the compiler error.

Checklist