addCompilerOpts method

void addCompilerOpts(
  1. String compilerOpts, {
  2. bool highPriority = false,
})

Add compiler options for clang. If highPriority is true these are added to the front of the list.

Implementation

void addCompilerOpts(String compilerOpts, {bool highPriority = false}) {
  if (highPriority) {
    _compilerOpts.insertAll(
        0, compilerOptsToList(compilerOpts)); // Inserts at the front.
  } else {
    _compilerOpts.addAll(compilerOptsToList(compilerOpts));
  }
}