Circle command-line reference

Driver modes

circle [options] input...
circle --driver-mode=unix [Unix-style options] input...
circle --driver-mode=cl [CL-style options] input...
Driver mode Default platforms Response-file quoting
--driver-mode=unix Linux, macOS GNU
--driver-mode=cl Windows Windows command line

--driver-mode=unix or --driver-mode=cl must be the first argument, before any @file response files. Each mode accepts its own option set. In option values, | separates alternatives.

Compiler identification macros

Macro Value
__CIRCLE_LANG__ 1
__circle_build__ Circle build number.
__CIRCLE_CUDA_SINGLE_PASS__ 1 for CUDA compilation without -cuda-multi-pass.
__CIRCLE_CUDA_MULTI_PASS__ 1 with -cuda-multi-pass or /cuda-multi-pass.

Environment variables

Variable Meaning
CUDA_PATH CUDA toolkit root. Overridden by -cuda-path.
CUDA_TOOLS CUDA tools directory. Overridden by -cuda-tools. Default is the selected toolkit's tools.
SDKROOT macOS SDK. Overridden by -isysroot.
DEVELOPER_DIR Additional macOS SDK and runtime discovery location.
INCLUDE, LIB Windows header/library paths, separated by semicolons. Default is automatic toolchain discovery.
ProgramFiles Additional LLVM runtime search root on Windows.
TMPDIR Temporary directory on macOS.
TMP, TEMP, USERPROFILE Windows temporary directory, in priority order. Fallback C:\Temp.
CIRCLE_JIT_PATH Circle executable used by the runtime JIT resolver.
LLVM_PROFILE_FILE PGO output filename. Default default_%m.profraw. %m identifies the binary and enables merging. %p inserts the process ID.
ASAN_OPTIONS AddressSanitizer runtime options.
MSAN_OPTIONS MemorySanitizer runtime options.
TSAN_OPTIONS ThreadSanitizer runtime options.
UBSAN_OPTIONS UndefinedBehaviorSanitizer runtime options.

Unix-style options

Ignored options are accepted for compatibility and have no effect.

Inputs, actions, and output

Option Meaning
file Source, object, or library input. Order is preserved.
file.s Assemble for the host target. Preprocessed assembly (.S) is unsupported.
-- End option processing; all following arguments are inputs.
@file Expand a GNU-quoted response file.
--help Print Unix-style help.
--version, -version Print Circle and LLVM version information.
-dumpversion Print the Circle compiler version.
-dumpmachine Print the compiler target.
-print-target-triple Print the target triple.
-### Print the resolved driver plan without executing it.
-c Compile without linking.
-S Emit assembly, or LLVM/SPIR-V text with the corresponding emit flag.
-E Preprocess to standard output.
-shared Build a shared library.
-dynamiclib Alias for -shared.
-bundle Build a Darwin bundle.
-fsyntax-only Parse and check without code generation.
-emit-llvm Emit LLVM IR: .ll with -S, .bc with -c.
-emit-spirv Emit SPIR-V: .spvasm with -S, .spv with -c.
-filetype=<kind> Select s, ll, bc, o, so, exe, ast, ptx, ltoir, cubin, sass, or fatbin.
-o file, -ofile Set the primary output path.
-x c, -x c++ Set the input language.
-jit Run through the JIT path.
-console Write textual output to the console.
-save-temps Preserve temporary files.
-save-temps=<dir> Preserve temporary files in dir.
-icase Use case-insensitive file lookup.

Preprocessor and dependencies

Joined forms such as -Idir are also accepted.

Option Meaning
-I dir Add a normal include directory. Repeatable.
-iquote dir Add a quote-only include directory. Repeatable.
-isystem dir Add a system include directory. Repeatable.
-include file Force an include before the source. Repeatable.
-D macro Define a macro. Repeatable and ordered with -U.
-U macro Undefine a macro. Repeatable and ordered with -D.
-nostdinc Do not search standard C include directories.
-nostdinc++ Do not search standard C++ include directories.
-dM Dump macro definitions.
-dump-paths Dump resolved include paths.
-M Emit user and system dependencies; implies preprocessing only.
-MM Emit user dependencies; implies preprocessing only.
-MD Emit dependencies while compiling.
-MMD Emit user dependencies while compiling.
-MF file Set the dependency output file.
-MT target Set the dependency target.

Language and frontend behavior

Option Meaning
-std=<version> Select the C or C++ standard. See Language standards.
-except=normal|error|silent Select Circle exception handling behavior.
-fexceptions Enable C++ exceptions.
-fno-exceptions Disable C++ exceptions.
-funwind-tables Request unwind tables.
-ffreestanding, -fhosted Select freestanding or hosted compilation.
-fext-numeric-literals, -fno-ext-numeric-literals Enable/disable extended numeric literals.
-fno-rtti Disable host RTTI.
-Grtti Enable RTTI for CUDA device code.
-fsigned-char Make plain char signed.
-funsigned-char Make plain char unsigned.
-fpack-struct=<n> Set structure packing.
-flax-vector-conversions Allow all lax vector conversions.
-flax-vector-conversions=none|integer|all Select lax vector-conversion policy.
-ftemplate-depth=<n> Set maximum template depth.
-ftemplate-depth-255 Set maximum template depth to 255.
-foperator-arrow-depth=<n> Limit chained operator-> calls. Default 256.
-fconstexpr-steps=<n> Limit constant-evaluation steps. Default 16777216.
-ftrial-steps=<n> Limit speculative evaluation steps. Default 1000.
-no-zero-array Disable zero-length arrays.
-P2128 Enable the P2128 behavior.
-fexperimental-library Enable experimental library behavior.
-fpermissive Accepted and ignored.
-fno-common Accepted and ignored.
-deferred-parsing Defer definition parsing. Default off. May miss template-injected friends.

Language standards

Language -std= values
C++ c++11, c++0x, c++14, c++1y, c++17, c++1z, c++20, c++2a, c++23, c++2b. Also accepts gnu++ in place of c++.
C c89, c90, c99, c9x, c11, c1x, c17, c18, c23, c2x. Also accepts gnu in place of c.
ISO C iso9899:1990, iso9899:1999, iso9899:199x, iso9899:2011, iso9899:2017, iso9899:2024.

Target and ABI

Option Meaning
-target target Select the target. See Targets.
--target=<target> Alias for -target.
-arch arm64|aarch64 Select a Darwin architecture. Only one allowed.
-m32 Select 32-bit code generation.
-m64 Select 64-bit code generation.
-mcpu=<cpu> Select the target CPU.
-march=<arch> Select the target architecture.
-mfeatures=<a,b,...> Add a comma-separated target-feature list.
-m<feature> Add one target feature, for example -mavx2; repeatable.
-abi=itanium|windows Select the ABI.
--itanium Select the Itanium ABI.
--windows Select the Windows ABI.

-m32 and -m64 are mutually exclusive.

Targets

x86_64, x86_64-pc-linux-gnu, aarch64, aarch64-unknown-linux-gnu, aarch64-apple-darwin, aarch64-pc-windows-msvc, x86_64-pc-windows-msvc.

Optimization and code generation

Option Meaning
-O0 through -O3 Set host optimization level.
-Os, -Oz Optimize host code for size. -Oz is more aggressive.
-flto[=full|thin] Enable host link-time optimization.
-fno-lto Disable host link-time optimization.
-ffast-math, -fno-fast-math Enable/disable fast math.
-ftrapping-math, -fno-trapping-math Enable/disable floating-point exception policy.
-OG0 through -OG3 Set device optimization level. Default -OG3, or -OG0 with -G.
-g Emit host debug information.
-G Emit device debug information.
-lineinfo Emit device line information.
-fPIC Generate position-independent code.
-fPIE, -fpie Aliases for -fPIC.
-fstrict-aliasing Enable strict aliasing.
-fno-strict-aliasing Disable strict aliasing.
-ffunction-sections, -fdata-sections Emit separate function/data sections.
-fno-optimize-sibling-calls Disable sibling-call optimization.
-ffp-contract=off|on|fast Control automatic floating-point fusion.
-fapprox-func / -fno-approx-func Enable/disable approximate floating-point functions and device division.
-fdenormal-fp-math-f32=<mode> Set float32 denormal handling. ieee, preserve-sign, positive-zero, or dynamic. Accepts output,input.
-fno-inline Disable inlining.
-fe-inline Enable optional frontend inlining. Default at -O2 and -O3.
-no-fe-inline Disable optional frontend inlining.
-fe-inline-max-callee-cost=N Set callee cost limit. Default 128.
-fe-inline-max-caller-cost=N Set cumulative caller cost limit. Default 1024.
-fe-inline-max-depth=N Set inline depth limit. Default 16.
-fe-param-use Enable parameter-use optimization. Default without full debug information.
-no-fe-param-use Disable parameter-use optimization. Default with -g or -G.
-no-nrvo Disable NRVO.
-no-always-inline Disable forced always-inline behavior.
-no-unroll Disable loop unrolling.
-fvisibility=default|hidden|internal|protected Set default symbol visibility.
-fvisibility-inlines-hidden Hide inline-function symbols.
-fno-semantic-interposition Assume ELF definitions are not interposed.
-fsemantic-interposition Preserve ELF symbol interposition. Last option wins.
-fno-builtin-operator-new Disable built-in treatment of operator new.
-fno-builtin-operator-delete Disable built-in treatment of operator delete.
-no-panic Disable panic instrumentation.
-panic-overflow Panic on signed and unsigned overflow.
-panic-overflow-signed Panic on signed overflow.
-panic-overflow-unsigned Panic on unsigned overflow.
-verify-ir Verify generated IR.
-ir-names Preserve readable IR names.
-ir-namse Accepted compatibility typo for -ir-names.
-x86-asm-syntax=att|intel Select x86 assembly syntax.

Stack protection

Option Meaning
-fstack-protector Protect character buffers of at least 8 bytes and variable-sized stack allocations. Defines __SSP__=1.
-fstack-protector-strong Also protect other arrays and address-taken locals. Defines __SSP_STRONG__=2.
-fstack-protector-all Protect every host function. Defines __SSP_ALL__=3.
-fno-stack-protector Disable stack protection. Default.

__attribute__((no_stack_protector)) or [[gnu::no_stack_protector]] disables protection per function.

Sanitizers

Use the same sanitizer flags at compile and link time. Reporting requires Clang compiler-rt runtimes.

Option Meaning
-fsanitize=<checks> Enable comma-separated checks from the table below.
-fno-sanitize=<checks> Disable selected checks. Accepts all.
-fsanitize-recover=<checks>, -fno-sanitize-recover=<checks> Enable/disable recovery. Accepts all.
-fsanitize-trap=<checks>, -fno-sanitize-trap=<checks> Enable/disable trap mode. Accepts all. Unsupported for ASan, MSan, and TSan.
-fsanitize-recover Alias for -fsanitize-recover=undefined.
-fno-sanitize-recover Alias for -fno-sanitize-recover=all.
--sanitizer-runtime-path=<dir> Set the sanitizer runtime search directory.
Check Detects
address Invalid memory accesses.
memory Uninitialized values.
thread Data races.
undefined Supported undefined behavior checks.
signed-integer-overflow Signed integer overflow.
integer-divide-by-zero Integer division by zero.
shift Invalid shifts.
alignment Misaligned accesses.
null Invalid null-pointer use.
cfi-icall Function-pointer call type mismatches.
cfi-vcall Invalid virtual-call targets.
cfi-derived-cast Invalid base-to-derived casts.
cfi-unrelated-cast Invalid casts to polymorphic types.

MemorySanitizer

Linux AArch64 and x86-64 only. Requires instrumented dependencies, including the C++ standard library. No fully static executables, ASan combination, or device instrumentation.

Option Meaning
-fsanitize-memory-track-origins=0|1|2 Track no origins, allocations, or allocations and stores. Default 0.
-fsanitize-memory-track-origins Enable origin tracking at level 2.
-fno-sanitize-memory-track-origins Disable origin tracking.
-fsanitize-memory-param-retval Check arguments and return values. Default on.
-fno-sanitize-memory-param-retval Disable argument and return checks.
-fsanitize-recover=memory Enable recovery. Also requires MSAN_OPTIONS=halt_on_error=0.

__has_feature(memory_sanitizer) identifies MSan builds. __attribute__((no_sanitize("memory"))) suppresses function checks.

ThreadSanitizer

Linux AArch64 and x86-64, and macOS AArch64. Linux executables default to PIE. No fully static executables, ASan/MSan combination, or device instrumentation.

Setting Meaning
__has_feature(thread_sanitizer), __SANITIZE_THREAD__ Identify TSan builds.
__attribute__((no_sanitize("thread"))) Suppress ordinary memory-access checks.
TSAN_OPTIONS=halt_on_error=1 Stop after the first report.

Control Flow Integrity

Requires LTO at compile and link time. Virtual-call and cast checks require hidden visibility or internal linkage. No cross-DSO checks or device instrumentation.

Option Meaning
-fsanitize-cfi-icall-generalize-pointers Relax pointer type matching while preserving const and volatile.
-fno-sanitize-cfi-icall-generalize-pointers Restore strict pointer type matching.
-fno-sanitize-trap=<checks> Report failures through compiler-rt.
-fsanitize-recover=<checks> Enable recovery in reporting mode.

__attribute__((no_sanitize("cfi"))) suppresses CFI checks per function.

Profile Guided Optimization

Option Meaning
-fprofile-generate[=<dir>] Instrument host code. Write default_%m.profraw to <dir> or the working directory.
-fprofile-use[=<path>] Read an indexed profile or <path>/default.profdata. Default ./default.profdata.
-fprofile-update=single|atomic|prefer-atomic Select counter updates. Default single.
-fno-profile-generate Cancel profile generation.
-fno-profile-use Cancel profile use.
--profile-runtime-path=<path> Set the profiling runtime search directory.

Merge raw profiles with llvm-profdata before use. Generation requires a compatible Clang compiler-rt runtime and flags at compile and link time. Profile-use flags apply at compile time. Generation and use are mutually exclusive. Host code only.

Diagnostics, tracing, and dumps

Option Meaning
-Werror Treat warnings as errors.
-Wreturn-type Warn about missing C++ return values. Default on.
-Wno-return-type Disable missing-return warnings, including under -Werror.
-Wunknown-attributes Warn about unknown C++ attributes. Default off.
-Wno-unknown-attributes Disable unknown-attribute warnings, including under -Werror.
-Wall Enable the supported general warning group.
-Wformat Enable the supported format warning group.
-Wno-deprecated Disable supported deprecation warnings.
-Wno-unknown-warning-option Suppress unknown-warning-option diagnostics.
-W<name> Other warning names are accepted but currently have no effect.
-w Accepted and ignored.
-pedantic Accepted and ignored.
-v, -verbose Enable verbose output.
-ferror-limit=<n> Set the diagnostic error limit.
-ftemplate-backtrace-limit=<n> Accepted and ignored.
-fmacro-backtrace-limit=<n> Accepted and ignored.
-fcolor-diagnostics Accepted and ignored.
-tabsize=<n> Set diagnostic tab width.
-warn-unknown-declspec Warn about unknown declaration specifiers.
-stat Print statistics.
-ftime-report Print a timing report.
-mllvm <arg> Forward an option to LLVM. Repeatable.
-ftime-log=<file> Write timing data to a file.
-print-deferred Print deferred-definition information.
-dump-templates-simple, -dump-templates-full Dump template information.
-dump-calls-simple, -dump-calls-full Dump call information.
-dump-functions-simple, -dump-functions-full Dump function information.
-dump-llvm Dump generated LLVM IR.
-fdump-record-layouts Dump record layouts.
-print-paths Print compiler resource paths.

Linking and libraries

Option Meaning
-stdlib=libc++|libstdc++|msstl Select the C++ standard library.
-libstdc++=<version> Select the libstdc++ version.
-gcc-toolchain=<dir> Select a GCC toolchain root.
-L dir, -Ldir Add a library search directory. Repeatable and ordered.
-F dir Add a framework search directory.
-framework <name> Link a framework.
-isysroot <dir> Set the SDK root.
-dynamic Request dynamic linking on Darwin. Ignored elsewhere.
-undefined <policy> Set linker undefined-symbol policy.
-install_name <name> Set library install name.
-compatibility_version <version> Set library compatibility version.
-current_version <version> Set library current version.
-l name, -lname Add a named library. Repeatable and ordered.
-Wl,a,b,... Forward comma-separated arguments to the linker in order.
-Xlinker arg Forward one argument to the linker.
-static Request static linking.
-pthread Enable pthread compile/link policy.
-rdynamic Export executable symbols dynamically.
-nodefaultlibs Omit default runtime libraries.
-nolibc Omit libc.
-nostdlib Omit startup files and standard libraries.
-nostdlib++ Omit the C++ standard library.
-fuse-ld=lld|gold|mold|bfd Select the linker implementation.
-no-demangle Disable linker diagnostic demangling.
-ML file Load a meta-programming support library. Repeatable.

CUDA, GPU, and HPC

Option Meaning
-sm_<arch> Add a CUDA target. See CUDA targets.
-arch=<arch> Alias for -sm_<arch>. Accepts 80 or sm_80.
-ptx-version=<version> Select PTX ISA 3.2, 4.0–4.3, 5.0, 6.0–6.1, 6.3–6.5, 7.0–7.8, 8.0–8.8, or 9.0–9.3.
-cuda-path=<dir> Set the CUDA toolkit root.
-cuda-tools=<dir> Set the CUDA tools directory.
--cuda-path=<dir>, -cuda-path <dir>, --cuda-path <dir> CUDA toolkit path aliases.
--cuda-tools=<dir>, -cuda-tools <dir>, --cuda-tools <dir> CUDA tools path aliases.
-cuda-toolkit-version=<major.minor>, --cuda-toolkit-version=<major.minor> Override the inferred CUDA toolkit version.
-gpu Select GPU output behavior.
-gpulibs Compile GPU libraries.
-nvvm Select NVVM compilation. Default in SOLID builds.
-nvptx Select LLVM NVPTX. Default in standard LLVM builds.
-tile-layout Use 32-bit shared-memory pointers in SOLID device modules. Requires a SOLID build.
-nvvm-reflect-ftz Enable NVVM reflect flush-to-zero.
-nvvm-no-libdevice Do not link libdevice.
-cuda0 Use the CUDA 0 compatibility headers.
-cuda-multi-pass Compile each CUDA architecture separately, then the host.
-Xptxas <arg> / -Xptxas=<arg> Forward one argument to ptxas. Repeatable.
-cuda-jobs=<n> Set CUDA multi-pass concurrency; 0 means automatic.
-cuda-device-arg=<arg> Forward an argument to CUDA device subprocesses. Repeatable.
-rdc Unsupported. Relocatable device code.
-device-lto Enable deferred device LTO inputs. Requires a SOLID build.
-dlto Enable device LTO behavior. Requires a SOLID build.
-no-sass Do not assemble PTX into SASS/CUBIN.
-device-functions-internal-linkage Give device functions internal linkage.
-hpc-sdk Enable NVIDIA HPC SDK integration.
-hpc-sdk-path=<dir> Set the NVIDIA HPC SDK root.
-stdpar Enable standard parallelism support.
-rocm-path=<dir> Set the ROCm root.

CUDA targets

35, 37, 50, 52, 53, 60, 61, 62, 70, 72, 75, 80, 86, 87, 88, 89, 90, 90a, 100, 100a, 100f, 103, 103a, 103f, 110, 110a, 110f, 120, 120a, 120f, 121, 121a, 121f.

Shader and SPIR-V

Option Meaning
-shader Enable shader compilation.
-shader-cse Enable shader common-subexpression elimination.
-shader-entry-point=<name> Set the shader entry point.
-spirv-namespace=<name> Set the implicit SPIR-V namespace.

Python, JIT, and PCH

Option Meaning
-python-runtime=<file> Load compile-time Python from a libpython shared library.
-python-version=<version> Select the hosted Python version.
-pythonpath<path>, -pythonpath=<path>, -pythonpath <path> Add a Python module path. Repeatable.
-python-input-path=<file> Set Python input transport path.
-python-output-path=<file> Set Python output transport path.
-python-errors-path=<file> Set Python error transport path.
-jit-option=<value> Add a JIT option. Repeatable.
-object-symbol=<name> Select the JIT object entry symbol.
-object-symbol-support=<name> Select the object-symbol support symbol.
-pch-input-path=<file> Read a PCH. Use {target} for CUDA multi-pass.
-pch-output-path=<file> Write a PCH. Use {target} for CUDA multi-pass.

Internal options

Option Meaning
-dump-driver-state Dump resolved driver state.
-dump-link-request Dump the typed link request.
-python-input-fileno=<n> Python input descriptor.
-python-output-fileno=<n> Python output descriptor.
-python-errors-fileno=<n> Python error descriptor.
-object-symbol-mangled-fileno=<n> object-symbol descriptor.
-pch-input-fileno=<n> PCH input descriptor.
-cuda-device-pass=<arch> CUDA device pass.
-cuda-manifest-fileno=<n> CUDA manifest descriptor.
-cuda-diag-fileno=<n> CUDA diagnostic descriptor.
-cuda-ptx-output=<file> CUDA PTX output path.
-cuda-cubin-output=<file> CUDA CUBIN output path.

CL-style options

CL options are case-sensitive. Dash-prefixed sanitizer, PGO, and CFI options also apply in CL mode.

Inputs, actions, and output

Option Meaning
file Source, object, or library input. Order is preserved.
@file Expand a Windows-quoted response file.
/help, /? Print CL-style help.
/Bv, -version Print Circle and LLVM version information and exit.
/ftime-report Print a compilation timing report.
-mllvm <arg> Forward an option to LLVM. Repeatable.
/nologo Accepted and ignored.
/c Compile without linking; defaults to <stem>.obj.
/E Preprocess to standard output.
/P Preprocess to <stem>.i or the /Fo path.
/FA Emit assembly to <stem>.asm or the /Fo path.
/Zs Parse and check syntax only.
/LD Build a DLL; defaults to <stem>.dll.
/Fo file, /Fofile Set object, assembly, or preprocess-file output.
/Fe file, /Fefile Set executable or DLL output. Incompatible with /c.
/Tc file, /Tcfile Add one input and compile it as C.
/Tp file, /Tpfile Add one input and compile it as C++.
/TC Compile all inputs as C.
/TP Compile all inputs as C++.
/link args... Forward remaining arguments to the linker. /LIBPATH: adds a search path.
/LIBPATH:<dir> Add a library search directory before or after /link.
-### Print the resolved driver plan without executing it.

Preprocessor and language

Option Meaning
/I dir, /Idir Add a normal include directory. Repeatable.
/external:I dir, /external:Idir Add a system include directory. Repeatable.
/D macro, /Dmacro Define a macro. Repeatable and ordered with /U.
/U macro, /Umacro Undefine a macro. Repeatable and ordered with /D.
/FI file, /FIfile Force an include. Repeatable.
/X Ignore standard include paths.
/showIncludes Print each included file in MSVC format.
/std:c++14 Select C++14.
/std:c++17 Select C++17.
/std:c++20 Select C++20.
/std:c++23 Select C++23.
/std:c++latest Select the compiler's C++23 mode.
/Zp<n> Set structure packing.
/EHsc Enable standard C++ exceptions.
/EHs-c- Disable C++ exceptions.
/GR- Disable RTTI.
/J Make plain char unsigned.
-deferred-parsing, /deferred-parsing Defer definition parsing. Default off. May miss template-injected friends.

Optimization, target, debug, and runtime

Option Meaning
/Od Disable optimization.
/O1 Select optimization level 1.
/O2 Optimize for speed.
/Ox Alias for /O2.
/cuda-multi-pass Compile each CUDA architecture separately.
/Ob0 Disable function inlining.
-O0 through -O3, -Os, -Oz Set host optimization level.
-g Emit debug information.
/fp:except, /fp:except- Enable/disable floating-point exception policy.
/fsanitize=<checks>, -fsanitize=<checks> Enable sanitizers. See Sanitizers.
-sm_<arch>, -arch=<arch> Add a CUDA target.
/arch:SSE2 Enable SSE2.
/arch:AVX Enable AVX.
/arch:AVX2 Enable AVX2.
/arch:AVX512 Enable AVX-512 foundation instructions.
/Z7 Emit CodeView debug information.
/Zi Alias for /Z7.
/MD Use the dynamic multithreaded MSVC runtime.
/MDd Use the debug dynamic MSVC runtime.
/MT Use the static multithreaded MSVC runtime.
/MTd Use the debug static MSVC runtime.

Warnings

Option Meaning
/WX Treat warnings as errors.
/WX- Do not treat warnings as errors.
/W0, /W1, /W2, /W3, /W4, /Wall Accepted and ignored.
/w Accepted and ignored.

Accepted and ignored CL compatibility options

Option Compatibility purpose
/MP Build-system parallelism hint.
/FS Serialized PDB-write request.
/bigobj Large COFF object request.
/errorReport:<mode> MSVC error-reporting policy.
/diagnostics:<format> Diagnostic formatting policy.
/permissive- Conformance-mode request.
/Zc:<rule> MSVC conformance rule.
/utf-8 UTF-8 source/execution charset shorthand.
/source-charset:<charset> Source character set.
/execution-charset:<charset> Execution character set.

Recognized but unsupported CL options

These options produce an unsupported CL option error.

Option Intended CL meaning
/fp:<model> Floating-point models other than except and except-.
/Fd file, /Fdfile PDB path.
/Yc header, /Ycheader Create a precompiled header.
/Yu header, /Yuheader Use a precompiled header.
/Fp file, /Fpfile Precompiled-header path.
/Gd __cdecl default calling convention.
/Gr __fastcall default calling convention.
/Gv __vectorcall default calling convention.
/GS Buffer security checks.
/Gy Function-level linking.
/Gw Global-data optimization.
/GL Whole-program optimization.
/guard:cf Control-flow guard.
/sdl Additional security checks.
/RTC1 Runtime checks.