Skip to content

Commit

Permalink
fixed integration test for bazel 5
Browse files Browse the repository at this point in the history
  • Loading branch information
LeFrosch committed Oct 21, 2024
1 parent 5d52bef commit 7ffd69e
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
import static com.google.idea.blaze.clwb.base.Assertions.assertContainsHeader;

import com.google.idea.blaze.clwb.base.ClwbIntegrationTestCase;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.vfs.VirtualFile;
import com.jetbrains.cidr.lang.workspace.compiler.ClangCompilerKind;
import com.jetbrains.cidr.lang.workspace.compiler.GCCCompilerKind;
import com.jetbrains.cidr.lang.workspace.compiler.MSVCCompilerKind;
import com.jetbrains.cidr.lang.workspace.headerRoots.HeadersSearchRoot;
import java.util.List;
import org.jetbrains.annotations.Nullable;
Expand All @@ -28,6 +24,15 @@ public void testClwb() {
checkImplDeps();
}

@Override
protected String projectViewText() {
// required for bazel 5
return super.projectViewText() + """
build_flags:
--experimental_cc_implementation_deps
""";
}

private @Nullable VirtualFile findHeader(String fileName, List<HeadersSearchRoot> roots) {
for (final var root : roots) {
final var rootFile = root.getVirtualFile();
Expand Down

0 comments on commit 7ffd69e

Please sign in to comment.