INNER CODE UNIT · Python

get_system_include_args

ClickHouse/ai-sdk-cpp · scripts/lint.py:47

def get_system_include_args() -> List[str]:
    """Get system include paths for macOS."""
    if sys.platform != "darwin":
        return []
    
    try:
        # Get Xcode path
        result = subprocess.run(["xcode-select", "-p"], capture_output=True, text=True)
        if result.returncode != 0:
            xcode_path = "/Applications/Xcode.app/Contents/Developer"
        else:
            xcode_path = result.stdout.strip()
        
        sdk_path = Path(xcode_path) / "Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
        
        if sdk_path.exists():
            return [
                f"--extra-arg=-isystem{sdk_path}/usr/include/c++/v1",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…