diff options
| author | 2019-02-18 20:27:00 -0500 | |
|---|---|---|
| committer | 2019-02-18 20:27:00 -0500 | |
| commit | 7927078b49c05905d8106f91c5f7a2e0d490fd2d (patch) | |
| tree | 0d68fae3da3b159b8ae85d39de2a2e4e4a5691d8 /tools | |
| parent | Update build script for windows. (diff) | |
Include header path when building modules.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/cook.janet | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/cook.janet b/tools/cook.janet index 7de26579..97d24fa6 100644 --- a/tools/cook.janet +++ b/tools/cook.janet @@ -94,7 +94,11 @@ (def OPTIMIZE 2) (def CC (if is-win "cl" "cc")) (def LD (if is-win "link" (string CC " -shared"))) -(def CFLAGS (string (if is-win "/O" "-std=c99 -Wall -Wextra -fpic -O") OPTIMIZE)) +(def CFLAGS (string + (if is-win "/I" "-I") + module/*headerpath* + (if is-win " /O" " -std=c99 -Wall -Wextra -fpic -O") + OPTIMIZE)) (defn- compile-c "Compile a C file into an object file." |
