Skip to content

Q: How to check/change compiler options? #1179

@indianakernick

Description

@indianakernick

When I create a new C++ file.

micro test.cpp

and write some C++17 code.

template <int... N>
struct sum {
  static constexpr int value = (N + ...);
};

When I save the file by pressing Ctrl-S, the code is compiled and I get a warning,

Fold expressions are a C++17 extension

I'd rather not get this warning. Is there so way that I can see the compiler options that micro is using and change them? I'd like to pass the flag -std=c++17 (and maybe -Wall -Wextra -pedantic if they aren't already) to the compiler. I couldn't find any mention of this in the documentation.

Commit hash: 1856891
OS: MacOS
Terminal: iTerm2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions