From fd0662520d453add386b48b4e0cc6cd6b566590c Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 29 Dec 2015 22:27:31 -0500 Subject: driver: added --std support. --- src/driver/amgc_unit_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver/amgc_unit_ctx.c') diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c index aed0c65..a37706c 100644 --- a/src/driver/amgc_unit_ctx.c +++ b/src/driver/amgc_unit_ctx.c @@ -137,7 +137,7 @@ int amgc_get_unit_ctx( ctx->ccunit.name = path; ctx->ccunit.original_name = path; ctx->ccunit.type = COMPILATION_UNIT_C; - ctx->ccunit.standard = STANDARD_C99; + ctx->ccunit.standard = dctx->cctx->std; /* parse, generate ast, generate ir */ if ((process_unit(ctx->cctx.ccenv,&ctx->ccunit)) == false) { -- cgit v1.2.3