Skip to content
Snippets Groups Projects
Commit bea61147 authored by Mick Jordan's avatar Mick Jordan
Browse files

native project: institute a version scheme to force a clean build

parent b7f0dac6
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,17 @@ export FASTR_NATIVE_DIR = $(TOPDIR)
export R_VERSION = $(subst R-,,$(notdir $(basename $(basename $(wildcard $(FASTR_R_HOME)/libdownloads/R-*.gz)))))
export GNUR_HOME = $(TOPDIR)/gnur/R-$(R_VERSION)
all:
# Completely accurate dependency analysis is very difficult for this project, so use a version number
# to force a clean build, and elsewhere use sentinels to avoid rebuilding when we can't compute the
# dependencies accurately.
all: checkversion
$(MAKE) -C gnur
$(MAKE) -C include
$(MAKE) -C fficall
$(MAKE) -C library
$(MAKE) -C run
cp version.source version.built
clean:
$(MAKE) -C include clean
......@@ -44,3 +49,25 @@ clean:
$(MAKE) -C run clean
$(MAKE) -C gnur clean
version.source := $(shell cat version.source)
#$(info version: $(version.source))
ifeq ($(wildcard version.built),)
doclean = 1
else
version.built := $(shell cat version.built)
#$(info version.built: $(version.built))
ifneq ($(version.source),$(version.built))
doclean = 1
else
doclean = 0
endif
endif
#$(info doclean: $(doclean))
checkversion:
ifeq ($(doclean),1)
$(MAKE) clean
endif
\ No newline at end of file
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......
2/10/17
......@@ -149,7 +149,6 @@ public class RFFIUtils {
}
private static void traceCall(CallMode mode, String name, int depthValue, Object... args) {
assert initialized;
if (traceEnabled) {
StringBuffer sb = new StringBuffer();
sb.append("CallRFFI[");
......
......@@ -33,6 +33,7 @@ import com.oracle.truffle.r.runtime.ffi.CharSXPWrapper;
* Some additional methods to support the native JNI side.
*/
public final class JNIUpCallsRFFIImpl extends JavaUpCallsRFFIImpl {
// Checkstyle: stop method name check
/**
* Helper function for {@code R_TopLevelExec}, see {@link #R_ToplevelExec()}, called after C
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment