TheDan64 / inkwell

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

Fix compilation on MacOS #498

Closed BigBadE closed 4 months ago

BigBadE commented 4 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