Skip to content

Build fails if there are no sources in src/main/scala #911

@ekrich

Description

@ekrich

If you have a pure testing project with source only in src/test/scala then the linking phase fails. Work around is to just add a source file in src/main/scala.

[debug] running
[debug] /usr/bin/clang
[debug] 	-S
[debug] 	-xc
[debug] 	-emit-llvm
[debug] 	-o
[debug] 	/Users/eric/workspace/scala-native-ml/unit-tests/target/scala-2.11/native/target/ll.probe
[debug] 	/Users/eric/workspace/scala-native-ml/unit-tests/target/scala-2.11/native/target/c.probe
[trace] Stack trace suppressed: run last tests/nativetest:nativeLinkNIR for the full output.
[error] (tests/nativetest:nativeLinkNIR) java.lang.UnsupportedOperationException: Neither a jar, nor a directory: /Users/eric/workspace/scala-native-ml/unit-tests/target/scala-2.11/classes
[error] Total time: 5 s, completed Jul 19, 2017 9:58:44 AM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions