mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 12:33:42 +00:00
cgo: add support for CFLAGS in .c files
This patch adds support for passing CFLAGS added in #cgo lines of the CGo preprocessing phase to the compiler when compiling C files inside packages. This is expected and convenient but didn't work before.
This commit is contained in:
committed by
Ron Evans
parent
896a848001
commit
1bed192de0
Vendored
+2
@@ -139,6 +139,8 @@ extern bitfield_t globalBitfield;
|
||||
|
||||
extern int smallEnumWidth;
|
||||
|
||||
extern int cflagsConstant;
|
||||
|
||||
// test duplicate definitions
|
||||
int add(int a, int b);
|
||||
extern int global;
|
||||
|
||||
Reference in New Issue
Block a user