Skip to content

Commit

Permalink
Fix an issue running intel-classic on x64 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rewrking committed Dec 24, 2023
1 parent 8d16b96 commit ff28a95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/Compile/CompilerCxx/CompilerCxxEmscripten.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@ struct CompilerCxxEmscripten : public CompilerCxxClang
virtual bool addExecutable(StringList& outArgList) const final;

virtual void addPositionIndependentCodeOption(StringList& outArgList) const final;

private:
// std::string m_pchSource;
};
}
3 changes: 0 additions & 3 deletions src/Compile/CompilerCxx/CompilerCxxIntelClang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ struct CompilerCxxIntelClang : public CompilerCxxClang
explicit CompilerCxxIntelClang(const BuildState& inState, const SourceTarget& inProject);

virtual bool initialize() final;

private:
// std::string m_pchSource;
};
}
6 changes: 2 additions & 4 deletions src/Compile/CompilerCxx/CompilerCxxIntelClassicGCC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ bool CompilerCxxIntelClassicGCC::initialize()

if (buildHashChanged)
{
// If The previous build with this build path (matching target triples) has an intermediate PCH file, remove it
auto oldPch = fmt::format("{}/{}", m_state.paths.objDir(), pch);
Files::removeIfExists(oldPch);
Files::removeIfExists(m_pchSource);
}

if (!Files::pathExists(m_pchSource))
{
auto pchMinusLocation = String::getPathFilename(pch);
auto pchMinusLocation = Files::getCanonicalPath(pch);
if (!Files::createFileWithContents(m_pchSource, fmt::format("// Generated by Chalet\n\n#include \"{}\"", pchMinusLocation)))
return false;
}
Expand Down

0 comments on commit ff28a95

Please sign in to comment.