-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from kon72/emscripten_patch
Get the arguments emcc would pass to clang
- Loading branch information
Showing
4 changed files
with
77 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Prints the arguments passed to the script | ||
|
||
#include <iostream> | ||
|
||
int main(int argc, char *argv[]) { | ||
std::cout << "===HEDRON_COMPILE_COMMANDS_BEGIN_ARGS===\n"; | ||
for (int i = 1; i < argc; ++i) { | ||
std::cout << argv[i] << "\n"; | ||
} | ||
std::cout << "===HEDRON_COMPILE_COMMANDS_END_ARGS===\n"; | ||
// We purposely return a non-zero exit code to have the emcc process exit after running this fake clang wrapper. | ||
return 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters