Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245432
b: refs/heads/master
c: 7fbd065
h: refs/heads/master
v: v3
  • Loading branch information
Michael Witten authored and Arnaldo Carvalho de Melo committed Apr 19, 2011
1 parent 8af5093 commit c759d92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ced465c400b23656ef2c4fbfb4add0e5b92e3d97
refs/heads/master: 7fbd065f5a2b299172502f09fc3fbde02b48f591
8 changes: 8 additions & 0 deletions trunk/tools/perf/config/utilities.mak
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,11 @@ endef
_ge_attempt = $(or $(get-executable),$(_gea_warn),$(call _gea_err,$(2)))
_gea_warn = $(warning The path '$(1)' is not executable.)
_gea_err = $(if $(1),$(error Please set '$(1)' appropriately))

# try-cc
# Usage: option = $(call try-cc, source-to-build, cc-options)
try-cc = $(shell sh -c \
'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \
echo "$(1)" | \
$(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \
rm -f "$$TMP"')
8 changes: 0 additions & 8 deletions trunk/tools/perf/feature-tests.mak
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,3 @@ int main(void)
return 0;
}
endef

# try-cc
# Usage: option = $(call try-cc, source-to-build, cc-options)
try-cc = $(shell sh -c \
'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \
echo "$(1)" | \
$(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \
rm -f "$$TMP"')

0 comments on commit c759d92

Please sign in to comment.