Skip to content

Commit

Permalink
Added Android specific feature map additions
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanL8 committed Feb 26, 2024
1 parent 72b9ef5 commit 779f8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CppParser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ void Parser::Setup(bool Compile)
if (opts->verbose)
printf("Target triple: %s\n", TO->Triple.c_str());

TO->FeatureMap.insert(std::make_pair("neon", true));
if (std::find(opts->Defines.begin(), opts->Defines.end(), "ANDROID") != opts->Defines.end())
TO->FeatureMap.insert(std::make_pair("neon", true));

TargetInfo* TI = TargetInfo::CreateTargetInfo(c->getDiagnostics(), TO);
if (!TI)
Expand Down

0 comments on commit 779f8aa

Please sign in to comment.