Update compiler flags and set toolchain