Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Nov 3, 2023
1 parent a5f8fb4 commit 104f740
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ if (${SKBUILD})
install(TARGETS ${module_name} DESTINATION .)
else ()
set(module_name "librapid")
add_library(${module_name} STATIC ${LIBRAPID_SOURCES}
librapid/include/librapid/core/log.hpp)
add_library(${module_name} STATIC ${LIBRAPID_SOURCES})
endif ()

# clang-format off
Expand Down
20 changes: 10 additions & 10 deletions librapid/bindings/generators/arrayGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ def generateFunctionsForArray(config):
),

# Move constructor
function.Function(
name="__init__",
args=[
argument.Argument(
name="other",
type=generateCppArrayType(config),
move=True
)
]
),
# function.Function(
# name="__init__",
args=[
# argument.Argument(
# name="other",
# type=generateCppArrayType(config),
# move=True
# )
# ]
# ),

# Shape
function.Function(
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ build-backend = "scikit_build_core.build"

[tool.scikit-build]

cmake.build-type = "MinSizeRel"
cmake.args = ["-DCMAKE_BUILD_TYPE=MinSizeRel"]
cmake.build-type = "Release"
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]

ninja.make-fallback = true
sdist.cmake = true
Expand Down
2 changes: 1 addition & 1 deletion scripts/setPythonLibCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
with open("../pyproject.toml", "r") as pyproj:
for line in pyproj.readlines():
if line.startswith("cmake.args"):
text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=MinSizeRel", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n'
text += f'cmake.args = ["-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_C_COMPILER={args.ccompiler}", "-DCMAKE_CXX_COMPILER={args.cxxcompiler}"]\n'
else:
text += line

Expand Down
4 changes: 2 additions & 2 deletions scripts/tmp/pyprojectTemplate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ build-backend = "scikit_build_core.build"

[tool.scikit-build]

cmake.build-type = "MinSizeRel"
cmake.args = ["-DCMAKE_BUILD_TYPE=MinSizeRel"]
cmake.build-type = "Release"
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]

ninja.make-fallback = true
sdist.cmake = true
Expand Down

0 comments on commit 104f740

Please sign in to comment.