We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35f1458 + 44b1451 commit e504a4dCopy full SHA for e504a4d
setup.py
@@ -11,7 +11,7 @@
11
#Does gcc compile with this header and library?
12
def compile_test(header, library):
13
dummy_path = os.path.join(os.path.dirname(__file__), "dummy")
14
- command = "bash -c \"g++ -include " + header + " -l" + library + " -x c++ - <<<'int main() {}' -o " + dummy_path + " >/dev/null 2>/dev/null && rm " + dummy_path + " 2>/dev/null\""
+ command = "bash -c \"g++ -include " + header + " -l" + library + " -x c++ - <<<'#include <" + header + ">\nint main() {}' -o " + dummy_path + " >/dev/null 2>/dev/null && rm " + dummy_path + " 2>/dev/null\""
15
return os.system(command) == 0
16
17
# Use an environment variable
0 commit comments