Skip to content

CLibrary annotation with requireStatic doesn't include library #4653

Closed
@davecramer

Description

@davecramer

With the following code

@CLibrary(value = "test1", requireStatic = true)
public class HelloWorld {

    @CLibrary(value = "test")
    public static void main(String[] args) {

    }
    
    @CEntryPoint(name="addJ")
    static int addJ(IsolateThread thread, int a, int b) {
        return a+b;
    }
    @CEntryPoint(name="subtractJ")
    static int subtractJ( IsolateThread thread, int a, int b) { return a-b; }
}

The linker does try to link test, but not test1

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions