diff options
author | midipix <writeonce@midipix.org> | 2015-12-29 22:27:31 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-01-01 22:50:24 -0500 |
commit | fd0662520d453add386b48b4e0cc6cd6b566590c (patch) | |
tree | 7bad6c7a8e0920c83016176ee4ab2000df325148 /src/driver/amgc_unit_ctx.c | |
parent | 379519e6def59e4eea6d3a59fc539b34a1c76e60 (diff) | |
download | apimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.bz2 apimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.xz |
driver: added --std support.
Diffstat (limited to 'src/driver/amgc_unit_ctx.c')
-rw-r--r-- | src/driver/amgc_unit_ctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |