The present document compiles a list of guidelines, recommendations, and expectations around the topic of compiling C and C++ code against the Core SDK.
The Fuchsia sysroot for a given target architecture is available under
//arch/<architecture>/sysroot
.
That directory contains a complete sysroot and may be used with any tool that
accepts a --sysroot
flag.
All prebuilts have C linkage.
Debug symbols for all prebuilts are available under //.build-id
, which follows
a standard convention.
- C++ sources can be compatible with either C++14 or C++17.
The following flags are guaranteed to not generate any warning:
-Wall
-Wextra-semi
-Wnewline-eof
-Wshadow
The following flags may generate warnings:
-Wdeprecated-declarations