-
Notifications
You must be signed in to change notification settings - Fork 4
build.rs is too platform specific #10
Comments
@mtmiller Looking at the stylo example, it looks like we can do something like: if cfg!(target_os = "windows") {
} else if cfg!(target_os = "macos") {
} And there is more documentation at http://rustbyexample.com/attribute/cfg.html. I haven't done a ton of Rust coding either. Please do enhance it to work on your computer. Accepting PRs. :-) |
That's not really what I'm reporting though. There is not one hardcoded location for Octave include files. If you and I are on the exact same distro, and my Octave header files are in /usr/local/octave/include and yours are in /opt/octave4.2/include, there must be a way to work that without every user having to edit this file. I would expect |
@mtmiller, are you reporting that Octave header files may be installed in different locations? How do you recommend we look for them? How about an environment variable like this: |
#22 shows where to look for the headers on Linux. |
I added a switch statement for different targets in #32. |
Probably should support environment variables for the various paths. We can search for the existence of files in well known locations if not set. |
I can build the project by deleting the
--target=...
and changing the-I/path/to/my/octave
options. What options or environment variables are available to cargo or bindgen to make this file less platform specific so anyone can build for their system?The text was updated successfully, but these errors were encountered: