Skip to content

Commit

Permalink
list contents of libint archive to try to understand why σ->s happens…
Browse files Browse the repository at this point in the history
… in file names on windows + try telling clang-cl to assume unicode source

https://github.com/evaleev/libint/actions/runs/7023185768/job/19110366005?pr=273#step:7:127
  • Loading branch information
evaleev committed Nov 29, 2023
1 parent b3cc2bc commit 37fceea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ jobs:
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_CXX_COMPILER=clang-cl
-DCMAKE_C_COMPILER=clang-cl
-DCMAKE_CXX_FLAGS="/source-charset:utf-8"
-DCMAKE_CXX_FLAGS="/source-charset:utf-8 /DUNICODE /D_UNICODE"
testargs: >
-GNinja
-DCMAKE_BUILD_TYPE=Release
Expand Down Expand Up @@ -275,6 +275,7 @@ jobs:
run: |
tar -zxf libint*tgz
ls -l libint-2*/src/CR_*
cat libint-2*/srclist.cmake
mkdir libint && mv libint-2*/* libint/ && cd libint/
cmake \
-S. \
Expand Down
2 changes: 0 additions & 2 deletions export/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,5 @@ exportdir::
-$(INSTALL) $(INSTALLLIBOPT) $(SRCDIR)/cmake/hftest.cmake $(TOPDIR)/$(EXPORTDIR)/cmake/hftest.cmake
$(INSTALL) $(INSTALLDIROPT) $(TOPDIR)/$(EXPORTDIR)/cmake/modules
-$(INSTALL) $(INSTALLLIBOPT) $(SRCDIR)/cmake/modules/*.cmake $(TOPDIR)/$(EXPORTDIR)/cmake/modules
echo "set(LIBINT2_LIBRARY_CXX_SRC" > $(TOPDIR)/$(EXPORTDIR)/srclist.cmake
ls $(TOPDIR)/$(EXPORTDIR)/src >> $(TOPDIR)/$(EXPORTDIR)/srclist.cmake
echo ")" >> $(TOPDIR)/$(EXPORTDIR)/srclist.cmake
cp -Rap $(SRCTOPDIR)/python $(TOPDIR)/$(EXPORTDIR)/
5 changes: 3 additions & 2 deletions export/cmake/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ set(LIBINT2_INSTALL_CMAKEDIR "lib/cmake/libint2"

# Libint library =======================================================================================================

include(srclist.cmake)
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/srclist.cmake" LIBINT2_LIBRARY_CXX_SRC ENCODING UTF-8)
set(LIB_CXX_SRC )
foreach(FN IN LISTS LIBINT2_LIBRARY_CXX_SRC)
message(WARNING "found source file src/${FN}")
list(APPEND LIB_CXX_SRC "src/${FN}")
endforeach()
# Create object files to use for static and shared libraries
Expand All @@ -203,7 +204,7 @@ target_compile_features(libint2_obj PUBLIC "cxx_std_11")
set_target_properties(
libint2_obj
PROPERTIES
UNITY_BUILD TRUE
UNITY_BUILD FALSE
)
if (TARGET MPFR::GMPXX)
target_link_libraries(libint2_obj PUBLIC MPFR::GMPXX)
Expand Down

0 comments on commit 37fceea

Please sign in to comment.