-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gnatcov 23 for Windows and macOS
- Loading branch information
1 parent
ad2567a
commit 021ee98
Showing
2 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
diff --git tools/gnatcov/Makefile tools/gnatcov/Makefile | ||
index 1282b82fb..d7e90fad4 100644 | ||
--- tools/gnatcov/Makefile | ||
+++ tools/gnatcov/Makefile | ||
@@ -95,8 +95,12 @@ ifeq ($(C_SUPPORT), True) | ||
include libclang_common.mk | ||
else | ||
CURRENT_DIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST)))) | ||
+ifeq ($(HOST_OS), windows) | ||
+GPR_PROJECT_PATH := $(CURRENT_DIR)/gpr_stubs;$(GPR_PROJECT_PATH) | ||
+else | ||
GPR_PROJECT_PATH := $(CURRENT_DIR)/gpr_stubs:$(GPR_PROJECT_PATH) | ||
endif | ||
+endif | ||
|
||
##################################################################### | ||
# Targets to build the core tool and the trace adapters, optionally # | ||
@@ -325,7 +329,7 @@ install-adapters: $(INSTALL_ADAPTER_TARGETS) | ||
# which has its own extra info embedded and eventually installs just all what | ||
# the distrib tree contains. We don't want any toplevel item there. | ||
|
||
-.PHONY: distrib-linux-extra distrib-windows-extra distrib | ||
+.PHONY: distrib-linux-extra distrib-windows-extra distrib-darwin-extra distrib | ||
|
||
distrib-linux-extra: | ||
[ -f COPYING3 ] || $(CP) ../../COPYING3 . | ||
@@ -337,6 +341,8 @@ distrib-linux-extra: | ||
|
||
distrib-windows-extra: | ||
|
||
+distrib-darwin-extra: | ||
+ | ||
distrib-common: install-adapters distrib-${HOST_OS}-extra | ||
distrib-without-doc: distrib-common install-without-doc | ||
distrib: distrib-without-doc | ||
diff --git tools/gnatcov/host.mk tools/gnatcov/host.mk | ||
index 53ba4b0be..445095784 100644 | ||
--- tools/gnatcov/host.mk | ||
+++ tools/gnatcov/host.mk | ||
@@ -14,6 +14,11 @@ HOST_OS=linux | ||
LN_S=ln -sf | ||
exeext= | ||
endif | ||
+ifneq (,$(filter Darwin, $(HOST_UNAME))) | ||
+HOST_OS=darwin | ||
+LN_S=ln -sf | ||
+exeext= | ||
+endif | ||
|
||
RM=rm -f | ||
CP=cp -pf |