Archived
Makefile: disable cJSON support when building without math support
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
||||
{ "name": "gcc-no-math",
|
||||
"flags":
|
||||
'{ "QMAKESPEC": "linux-gcc-no-math",
|
||||
"EVAL": "export CXX=false && touch src/math.h src/float.h",
|
||||
"EVAL": "export CXX=false && touch math.h float.h",
|
||||
"CFLAGS": "-ffreestanding -DCBOR_NO_FLOATING_POINT -Os",
|
||||
"LDFLAGS": "-Wl,--no-undefined",
|
||||
"LDLIBS": ""
|
||||
|
||||
+4
-3
@@ -15,11 +15,12 @@ PROGRAM-freestanding += int main() {}
|
||||
CCFLAGS-freestanding = $(CFLAGS)
|
||||
|
||||
PROGRAM-cjson = \#include <stdlib.h>\n
|
||||
PROGRAM-cjson += \#include <math.h>\n
|
||||
PROGRAM-cjson += \#include <cjson/cJSON.h>\n
|
||||
PROGRAM-cjson += int main() { return cJSON_False; }
|
||||
CCFLAGS-cjson = -I$(dir $(MAKEFILE))src
|
||||
PROGRAM-cjson += int main() { double d = NAN; return cJSON_False; }
|
||||
CCFLAGS-cjson = -I. -I$(dir $(MAKEFILE))src
|
||||
PROGRAM-system-cjson = $(PROGRAM-cjson)
|
||||
CCFLAGS-system-cjson = -lcjson
|
||||
CCFLAGS-system-cjson = -I. -lcjson
|
||||
|
||||
sink:
|
||||
@echo >&2 Please run from the top-level Makefile.
|
||||
|
||||
Reference in New Issue
Block a user