-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
append MASON_STDLIB_VERSION to binary if MASON_CXX_PACKAGE == true
respect CXX env var add script to print c++ stdlib version include <string> instead of <ciso646> because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65473
- Loading branch information
1 parent
36dc928
commit 3c627cb
Showing
3 changed files
with
26 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*-*/ | ||
*-*/ | ||
stdlib.o |
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,16 @@ | ||
#include <string> | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
#define PRINT(name, version) printf("%s-%d\n", name, version); | ||
|
||
int main(int argc, char *argv[]) { | ||
#ifdef _LIBCPP_VERSION | ||
PRINT("libc++", _LIBCPP_ABI_VERSION) | ||
#elif __GLIBCXX__ | ||
PRINT("libstdc++", __GLIBCXX__) | ||
#endif | ||
|
||
exit(EXIT_SUCCESS); | ||
} |