From 44b1451617e2c1f388cb704d115784ce88a559ac Mon Sep 17 00:00:00 2001 From: jacobkahn Date: Sun, 25 Feb 2024 12:39:42 -0500 Subject: [PATCH] Explicitly try to include headers too --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7fb9db1f..6742dead 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ #Does gcc compile with this header and library? def compile_test(header, library): dummy_path = os.path.join(os.path.dirname(__file__), "dummy") - 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\"" return os.system(command) == 0 # Use an environment variable