Skip to content

Allow passing custom parameters to ispc compiler in VS code extension #81

@madhavarshney

Description

@madhavarshney

While you can configure the target OS, target CPU, and general target for the ispc compiler in VS Code settings, there is currently no way to pass custom parameters (ex. --enable-llvm-intrinsics). The "compiler path" option also doesn't seem to work if flags are passed in there.

As a workaround, I'm creating a shell script which redirects options and setting the compiler path to that, but a built-in option would be great.

ispc.sh:

#!/bin/bash
# hack for VS code ISPC extension: extension has no way to set custom compiler flags,
# and ispc.compilerPath needs to be an executable, so I reroute it this way.
ispc --enable-llvm-intrinsics "$@"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions