Get slangc building with clang

This commit is contained in:
Kovid Goyal 2026-06-25 05:44:11 +05:30
parent b5339915e6
commit fff087bd49
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@
#include <slang-com-ptr.h>
#include <slang-com-helper.h>
#endif
#include <string>
using namespace slang;

View file

@ -642,7 +642,7 @@ def slang_env(args: Options) -> Env:
cflags[:0] = pkg_config('slang-compiler', '--cflags-only-I')
pylib = get_python_flags(args, cflags)
ans.cflags = cflags
ans.ldflags = pylib + ans.ldflags + pkg_config('slang-compiler', '--libs')
ans.ldflags = ['-lstdc++'] + pylib + ans.ldflags + pkg_config('slang-compiler', '--libs')
return ans