fast forward branch

This commit is contained in:
Scott Fennell 2022-06-13 10:48:13 -05:00
commit 7ce93ea457
15 changed files with 46 additions and 32 deletions

View File

@ -16,14 +16,16 @@ jobs:
matrix:
cfg:
#-------- Operating Systems ----------------
- { os: ubuntu, tag: 18.04, arch: debian, arch_ver: 10 }
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
- { os: centos, tag: 7, arch: rhel, arch_ver: 7 }
- { os: rockylinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: oraclelinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: almalinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: ubuntu, tag: 18.04, arch: debian, arch_ver: 10 }
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
- { os: ubuntu, tag: 22.04, arch: debian, arch_ver: 12 }
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
- { os: debian, tag: bookworm, arch: debian, arch_ver: 12 }
- { os: centos, tag: 7, arch: rhel, arch_ver: 7 }
- { os: rockylinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: oraclelinux, tag: 8, arch: rhel, arch_ver: 8 }
- { os: almalinux, tag: 8, arch: rhel, arch_ver: 8 }
python: [2, 3]
#-------- Defaults --------------------------
@ -63,6 +65,12 @@ jobs:
default-jdk
python2.7-dev
python3-dev
install_gtest: |
apt-get install -y libgtest-dev
cd /usr/src/gtest
cmake .
make
cp lib/libgtest* /usr/lib/
#-------- RHEL Dependencies ----------------
- cfg: { arch: rhel }
arch_deps: >-
@ -87,7 +95,7 @@ jobs:
#-------- RHEL 7-based Only Dependencies ----------------
- cfg: { arch: rhel, arch_ver: 7 }
pkg_mgr: yum
conf_pkg: |
conf_pkg: |
yum -y install epel-release
yum -y update
os_deps: >-
@ -122,12 +130,6 @@ jobs:
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y tzdata
install_gtest: |
apt-get install -y libgtest-dev
cd /usr/src/gtest
cmake .
make
cp lib/libgtest* /usr/lib/
#-------- OS and Version Specific Dependencies ----------------
- cfg: { os: oraclelinux }
install_gtest: |
@ -157,7 +159,7 @@ jobs:
export PYTHON_VERSION=${{matrix.python}}
./configure
- name: Build Trick
run: |
run: |
export MAKEFLAGS=-j`nproc`
make
- name: Test

View File

@ -170,7 +170,7 @@ proceed to [Install Trick](#install) section of the install guide
<a name="macos"></a>
### macOS Monterey, Big Sur, Catalina
#### These instructions are for Intel-based macs. For the latest Apple silicon (M1) instructions see this issue: https://github.com/nasa/trick/issues/1283
1. Install the latest Xcode. I recommend installing Xcode through the App Store.
2. Download and install Xcode Command Line Tools for macOS. The following command in the terminal should do the job:
@ -185,7 +185,7 @@ xcode-select --install
4. Install the following dependencies using brew (note, we do not currently support installing llvm through brew. Trick WILL NOT work with brew's llvm. See step 5).
```bash
brew install java xquartz swig maven udunits openmotif
brew install python java xquartz swig maven udunits openmotif
```
IMPORTANT: Make sure to follow the instructions for adding java to your path provided by brew. If you missed them, you can see them again by using `brew info java`.
@ -199,7 +199,7 @@ Tip: I suggest renaming the untar'd directory to something simple like llvm13 an
IMPORTANT: Your mac might complain during configuration or build that llvm is downloaded from the internet and can not be trusted. You may need to find a safe solution for this on your own. DO THIS AT YOUR OWN RISK: What worked for us was enabling Settings->Security & Privacy->Privacy->Developer Tools->Terminal.
IMPORTANT: when doing the configure step in the install trick section, you need to point trick to llvm. It is also possible that the current iteration of our configure script will not be able to find the udunits package, so you may need to point trick to udunits as well.
IMPORTANT: when doing the configure step in the install trick section, you need to point trick to llvm. It is also possible that the current iteration of our configure script will not be able to find the udunits package, so you may need to point trick to udunits as well (I believe this is only an issue on M1 macs).
You can find the path of udunits by executing the following command:
```

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
dyn.balloon.pos[0] = 0
#dyn.balloon.pos[1] = 136.89

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
# Variable Server Data should be copied at top of frame.
trick.var_set_copy_mode(2)

View File

@ -1,4 +1,4 @@
execfile("Modified_data/realtime.py")
exec(open("./Modified_data/realtime.py").read())
dyn.lander.pos[0] = 0
dyn.lander.pos[1] = 1.8

View File

@ -79,7 +79,13 @@ bool CXXRecordVisitor::TraverseDecl(clang::Decl *d) {
/* This is an embedded enumeration within a class. Only process it if is public */
if ( ed->getAccess() == clang::AS_public ) {
EnumVisitor evis(ci, hsd) ;
// Before llvm 14, TraverseDecl also traversed the type.
// llvm believed this to be a bug, so now we call TraverseType
// in addition to TraverseDecl.
evis.TraverseDecl(ed) ;
#if (LIBCLANG_MAJOR >= 14)
evis.TraverseType(clang::QualType(ed->getTypeForDecl(), 0));
#endif
pa.printEnum(evis.get_enum_data()) ;
} else {
// protected and private embedded classes cannot be used outside of their class

View File

@ -98,7 +98,13 @@ bool TranslationUnitVisitor::TraverseDecl(clang::Decl *d) {
clang::EnumDecl * ed = static_cast<clang::EnumDecl *>(d) ;
if ( isInUserCode(ci , ed->RBRACELOC(), hsd) ) {
EnumVisitor evis(ci, hsd) ;
// Before llvm 14, TraverseDecl also traversed the type.
// llvm believed this to be a bug, so now we call TraverseType
// in addition to TraverseDecl.
evis.TraverseDecl(ed) ;
#if (LIBCLANG_MAJOR >= 14)
evis.TraverseType(clang::QualType(ed->getTypeForDecl(), 0));
#endif
//if ( evis.get_enum_data() != NULL ) {
pa.printEnum(evis.get_enum_data()) ;
//}

View File

@ -215,7 +215,7 @@ int main(int argc, char * argv[]) {
ci.setASTConsumer(astConsumer);
#endif
ci.createASTContext();
ci.createSema(clang::TU_Prefix, NULL);
ci.createSema(clang::TU_Complete, NULL);
// Get the full path of the file to be read
char buffer[input_file_names[0].size() + 1];

View File

@ -47,7 +47,7 @@ DP_LIBS = -L${TRICK_HOME}/trick_source/data_products/lib_${TRICK_HOST_CP
MODEL_LIBS = -lxml2 \
-L${DPX_DIR}/lib_${TRICK_HOST_CPU} -lDPM \
-L${TRICK_HOME}/trick_source/data_products/lib_${TRICK_HOST_CPU} -ltrick_units \
${GTEST_LIBS} -lpthread -ludunits2
${GTEST_LIBS} -lpthread -ludunits2 ${UDUNITS_LDFLAGS}
CONTROLLER_LIBS = -lDPC \
${MODEL_LIBS} ${DP_LIBS} \
${XLIBS} ${LIBRTDEF} \

View File

@ -6312,9 +6312,9 @@
"integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA=="
},
"eventsource": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz",
"integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz",
"integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==",
"requires": {
"original": "^1.0.0"
}