Skip to content
Snippets Groups Projects
Commit 4c917343 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'macos_fixes' into 'master'

Make relibc buildable on macOS (not for macOS)

See merge request !179
parents 1c92751a 484a05e8
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,11 @@ ifneq ($(TARGET),) ...@@ -10,11 +10,11 @@ ifneq ($(TARGET),)
endif endif
ifeq ($(TARGET),aarch64-unknown-linux-gnu) ifeq ($(TARGET),aarch64-unknown-linux-gnu)
CC?=aarch64-linux-gnu-gcc export CC=aarch64-linux-gnu-gcc
endif endif
ifeq ($(TARGET),x86_64-unknown-redox) ifeq ($(TARGET),x86_64-unknown-redox)
CC?=x86_64-unknown-redox-gcc export CC=x86_64-unknown-redox-gcc
endif endif
SRC=\ SRC=\
......
...@@ -11,7 +11,7 @@ do ...@@ -11,7 +11,7 @@ do
name="$(basename "$dir")" name="$(basename "$dir")"
if [ "${name:0:1}" != "_" ] if [ "${name:0:1}" != "_" ]
then then
header="$include/${name/_/\/}.h" header="$include/${name/_//}.h"
pushd "$dir" pushd "$dir"
cargo run --release --manifest-path "$cbindgen/Cargo.toml" -- \ cargo run --release --manifest-path "$cbindgen/Cargo.toml" -- \
-c cbindgen.toml -o "$header" mod.rs -c cbindgen.toml -o "$header" mod.rs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment