Skip to content

Commit

Permalink
make sure only msvc flags are applied for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Dec 14, 2024
1 parent 3d20bd7 commit 25778a6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cache: true

- name: Build Code_Aster
shell: cmd
shell: bash
run: |
pixi run cbuild --no-test
Expand Down
4 changes: 4 additions & 0 deletions bibc/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def check_c_compiler_options(self, options):

@Configure.conf
def check_optimization_cflags(self):
if self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting C debug flags")
self.remove_optflags("CFLAGS")
Expand All @@ -222,6 +224,8 @@ def check_optimization_cflags(self):

@Configure.conf
def check_optimization_cflags_msvc(self):
if not self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting C debug flags for MSVC")
self.remove_optflags("CFLAGS")
Expand Down
4 changes: 4 additions & 0 deletions bibcxx/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def check_cxx_compiler_options(self, options):

@Configure.conf
def check_optimization_cxxflags(self):
if self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting C++ debug flags")
self.define("ASTER_DEBUG_CXX", 1)
Expand All @@ -158,6 +160,8 @@ def check_optimization_cxxflags(self):

@Configure.conf
def check_optimization_cxxflags_msvc(self):
if not self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting C++ debug flags for MSVC")
self.define("ASTER_DEBUG_CXX", 1)
Expand Down
4 changes: 4 additions & 0 deletions bibfor/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def check_c_fortran_real8(self):
@Configure.conf
def check_optimization_fcflags(self):
"""Check for optimization FCFLAGS."""
if self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting fortran debug flags")
self.define("ASTER_DEBUG_FC", 1)
Expand Down Expand Up @@ -535,6 +537,8 @@ def check_optimization_fcflags(self):

@Configure.conf
def check_optimization_fcflags_msvc(self):
if not self.env.ASTER_PLATFORM_MSVC64:
return
self.setenv("debug")
self.start_msg("Setting Fortran debug flags for IFort")
self.remove_optflags("FCFLAGS")
Expand Down

0 comments on commit 25778a6

Please sign in to comment.