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

Support for toolchain definitions and cross compilation #110

Merged
merged 11 commits into from
Mar 17, 2019

Conversation

bendmorris
Copy link
Member

@bendmorris bendmorris commented Mar 2, 2019

A toolchain is a .env file containing platform/compiler-specific configuration:

CC=gcc
CPPFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE"
CFLAGS="-std=c99 -pedantic -O3 -Os -Wno-missing-braces -Wno-shift-op-parentheses"

Currently they can include CC, CFLAGS, CPPFLAGS, LDFLAGS and INCLUDE_PATHS.

Invoked by using the --build (the local toolchain, used by macros) and/or --host (the target compilation toolchain) command line arguments with a toolchain name or path (e.g. linux-gcc or /path/to/linux-gcc). If --build isn't provided, it uses a system default; if --host isn't provided, it uses the same toolchain as --build.

@bendmorris bendmorris force-pushed the toolchains branch 14 times, most recently from 1572a15 to b34a6c3 Compare March 3, 2019 07:50
@bendmorris bendmorris mentioned this pull request Mar 3, 2019
@bendmorris bendmorris force-pushed the toolchains branch 6 times, most recently from 2ee9a94 to cd90a81 Compare March 10, 2019 23:08
@bendmorris bendmorris force-pushed the toolchains branch 2 times, most recently from 753c65a to d820296 Compare March 17, 2019 23:22
@bendmorris bendmorris merged commit 09490c1 into kitlang:dev Mar 17, 2019
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

Successfully merging this pull request may close these issues.

1 participant