Skip to content

Commit 15297a3

Browse files
authored
Remove pinning c++ version from get_stdopt (#203)
1 parent dc14222 commit 15297a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/xinterpreter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ namespace xcpp
7777
static std::string get_stdopt()
7878
{
7979
// We need to find what's the C++ version the interpreter runs with.
80-
#ifndef EMSCRIPTEN
8180
const char* code = R"(
8281
int __get_cxx_version () {
8382
#if __cplusplus > 202302L
@@ -100,9 +99,6 @@ __get_cxx_version ()
10099
)";
101100
auto cxx_version = Cpp::Evaluate(code);
102101
return std::to_string(cxx_version);
103-
#else
104-
return "20";
105-
#endif
106102
}
107103

108104
interpreter::interpreter(int argc, const char* const* argv) :

0 commit comments

Comments
 (0)